Class: MuSL::Maker::Block

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

Direct Known Subclasses

Assertions, Globals, Hosts, Options, Receive, Send, Steps, Variables

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scenario) ⇒ Block

Returns a new instance of Block.



112
113
114
# File 'lib/mu/maker.rb', line 112

def initialize scenario
    @scenario = scenario
end

Instance Attribute Details

#scenarioObject (readonly)

Returns the value of attribute scenario.



110
111
112
# File 'lib/mu/maker.rb', line 110

def scenario
  @scenario
end

Instance Method Details

#comment(text) ⇒ Object



116
117
118
# File 'lib/mu/maker.rb', line 116

def comment text
    scenario.comment text
end