Class: MuSL::Maker::Options

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

Instance Attribute Summary

Attributes inherited from Block

#scenario

Instance Method Summary collapse

Methods inherited from Block

#comment, #initialize

Constructor Details

This class inherits a constructor from MuSL::Maker::Block

Instance Method Details

#create(name, value) ⇒ Object



129
130
131
132
# File 'lib/mu/maker.rb', line 129

def create name, value
    v = value.is_a?(String) ? '"' + value + '"' : value
    scenario.line('$' + name + ' = ' + v)
end