Class: Natsuzora::AST::EachBlock
Instance Attribute Summary collapse
-
#body_nodes ⇒ Object
readonly
Returns the value of attribute body_nodes.
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
-
#item_name ⇒ Object
readonly
Returns the value of attribute item_name.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(collection:, item_name:, body_nodes:) ⇒ EachBlock
constructor
A new instance of EachBlock.
Constructor Details
#initialize(collection:, item_name:, body_nodes:) ⇒ EachBlock
Returns a new instance of EachBlock.
67 68 69 70 71 72 |
# File 'lib/natsuzora/ast.rb', line 67 def initialize(collection:, item_name:, body_nodes:, **) super(**) @collection = collection @item_name = item_name @body_nodes = body_nodes end |
Instance Attribute Details
#body_nodes ⇒ Object (readonly)
Returns the value of attribute body_nodes.
65 66 67 |
# File 'lib/natsuzora/ast.rb', line 65 def body_nodes @body_nodes end |
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
65 66 67 |
# File 'lib/natsuzora/ast.rb', line 65 def collection @collection end |
#item_name ⇒ Object (readonly)
Returns the value of attribute item_name.
65 66 67 |
# File 'lib/natsuzora/ast.rb', line 65 def item_name @item_name end |