Class: Literal::Attributable::Generators::IVarWriter
- Defined in:
- lib/literal/attributable/generators/i_var_writer.rb
Instance Attribute Summary
Attributes included from Nodes
Instance Method Summary collapse
- #assignment ⇒ Object private
Methods inherited from Writer
#body, #initialize, #params, #template, #type_check
Methods inherited from Base
Methods included from Nodes
Constructor Details
This class inherits a constructor from Literal::Attributable::Generators::Writer
Instance Method Details
#assignment ⇒ Object (private)
7 8 9 10 11 12 |
# File 'lib/literal/attributable/generators/i_var_writer.rb', line 7 def assignment Assignment.new( left: Ref.new("@#{@attribute.name}"), right: Ref.new("value") ) end |