Class: Bio::Shell::Script

Inherits:
Object show all
Defined in:
lib/bio/shell/script.rb

Instance Method Summary (collapse)

Constructor Details

- (Script) initialize(script)



15
16
17
18
19
20
# File 'lib/bio/shell/script.rb', line 15

def initialize(script)
  Bio::Shell.cache[:binding] = TOPLEVEL_BINDING
  Bio::Shell.load_session
  eval(File.read(script), TOPLEVEL_BINDING)
  exit
end