Class: Cyrel::AST::ReturnNode
- Inherits:
-
ClauseNode
- Object
- Node
- ClauseNode
- Cyrel::AST::ReturnNode
- Defined in:
- lib/cyrel/ast/return_node.rb
Instance Attribute Summary collapse
-
#distinct ⇒ Object
readonly
Returns the value of attribute distinct.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
Instance Method Summary collapse
-
#initialize(items, distinct: false) ⇒ ReturnNode
constructor
A new instance of ReturnNode.
Methods inherited from Node
Constructor Details
#initialize(items, distinct: false) ⇒ ReturnNode
Returns a new instance of ReturnNode.
8 9 10 11 12 |
# File 'lib/cyrel/ast/return_node.rb', line 8 def initialize(items, distinct: false) # items is an array of expressions/identifiers to return @items = items @distinct = distinct end |
Instance Attribute Details
#distinct ⇒ Object (readonly)
Returns the value of attribute distinct.
6 7 8 |
# File 'lib/cyrel/ast/return_node.rb', line 6 def distinct @distinct end |
#items ⇒ Object (readonly)
Returns the value of attribute items.
6 7 8 |
# File 'lib/cyrel/ast/return_node.rb', line 6 def items @items end |