module BiorubyHelper

Public Instance Methods

have_results() click to toggle source
# File lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby_helper.rb, line 13
def have_results
  Bio::Shell.cache[:results].number > 0
end
local_variables() click to toggle source
# File lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby_helper.rb, line 17
def local_variables
  eval("local_variables", Bio::Shell.cache[:binding]) -
    BiorubyController::HIDE_VARIABLES
end
project_workdir() click to toggle source
# File lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby_helper.rb, line 5
def project_workdir
  if Bio::Shell.cache[:savedir].match(/\.bioruby$/)
    Bio::Shell.cache[:workdir]
  else
    Bio::Shell.cache[:savedir]
  end
end
render_log(page) click to toggle source
# File lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby_helper.rb, line 22
def render_log(page)
  page.insert_html :top, :logs, :partial => "log"
  page.replace_html "variables", :partial => "variables"
  page.hide "methods_#{@number}"
  page.hide "classes_#{@number}"
  page.hide "modules_#{@number}"
end