Class: Script::Step
- Inherits:
-
Object
- Object
- Script::Step
- Defined in:
- lib/script/step.rb
Instance Method Summary collapse
-
#initialize(headline, block) ⇒ Step
constructor
A new instance of Step.
- #run ⇒ Object
Constructor Details
#initialize(headline, block) ⇒ Step
Returns a new instance of Step.
2 3 4 5 |
# File 'lib/script/step.rb', line 2 def initialize(headline, block) @headline = headline @block = block end |
Instance Method Details
#run ⇒ Object
7 8 9 |
# File 'lib/script/step.rb', line 7 def run @block.call end |