Method: Superscript::Runner#initialize

Defined in:
lib/superscript/runner.rb

#initialize(path = nil, opts = {}) ⇒ Runner

Returns a new instance of Runner.



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/superscript/runner.rb', line 7

def initialize path=nil, opts={}
  @methods = opts[:methods] || false
  @on_error_exec = opts[:on_error_exec]

  @armed = false
  @path = if path
    path
  else
    "<interactive>"
  end
end