Class: Literal::Attributable::Generators::StructReader
- Defined in:
- lib/literal/attributable/generators/struct_reader.rb
Instance Attribute Summary
Attributes included from Nodes
Instance Method Summary collapse
-
#body ⇒ Object
private
Methods inherited from Reader
Methods inherited from Base
Methods included from Nodes
Constructor Details
This class inherits a constructor from Literal::Attributable::Generators::Reader
Instance Method Details
#body ⇒ Object (private)
7 8 9 10 11 12 13 14 |
# File 'lib/literal/attributable/generators/struct_reader.rb', line 7 def body [ Access.new( collection: Ref.new("@attributes"), key: Symbol.new(@attribute.name) ) ] end |