Class: Metal::Generator::Precode

Inherits:
Object
  • Object
show all
Defined in:
lib/metal/generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



172
173
174
# File 'lib/metal/generator.rb', line 172

def code
  @code
end