Class: MuSL::Maker::Block
- Inherits:
-
Object
- Object
- MuSL::Maker::Block
- Defined in:
- lib/mu/maker.rb
Instance Attribute Summary collapse
-
#scenario ⇒ Object
readonly
Returns the value of attribute scenario.
Instance Method Summary collapse
- #comment(text) ⇒ Object
-
#initialize(scenario) ⇒ Block
constructor
A new instance of Block.
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
#scenario ⇒ Object (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 |