Class: Metal::Generator::Precode
- Inherits:
-
Object
- Object
- Metal::Generator::Precode
- Defined in:
- lib/metal/generator.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code) ⇒ Precode
constructor
A new instance of Precode.
Constructor Details
#initialize(code) ⇒ Precode
Returns a new instance of Precode.
169 170 171 |
# File 'lib/metal/generator.rb', line 169 def initialize(code) @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
172 173 174 |
# File 'lib/metal/generator.rb', line 172 def code @code end |