Class: Script::Run

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

Instance Method Summary collapse

Constructor Details

#initialize(toplevel, tag) ⇒ Run

Returns a new instance of Run.



122
123
124
125
# File 'lib/script.rb', line 122

def initialize(toplevel, tag)
  @toplevel = toplevel
  @tag = tag
end

Instance Method Details

#doitObject



127
128
129
# File 'lib/script.rb', line 127

def doit
  @toplevel.actions[@tag].doit
end