Class: Cyrel::AST::LimitNode
- Inherits:
-
ClauseNode
- Object
- Node
- ClauseNode
- Cyrel::AST::LimitNode
- Defined in:
- lib/cyrel/ast/limit_node.rb
Overview
AST node for LIMIT clause For when you want boundaries, even in your queries
Instance Attribute Summary collapse
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
Instance Method Summary collapse
-
#initialize(expression) ⇒ LimitNode
constructor
A new instance of LimitNode.
Methods inherited from Node
Constructor Details
#initialize(expression) ⇒ LimitNode
Returns a new instance of LimitNode.
10 11 12 |
# File 'lib/cyrel/ast/limit_node.rb', line 10 def initialize(expression) @expression = expression end |
Instance Attribute Details
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
8 9 10 |
# File 'lib/cyrel/ast/limit_node.rb', line 8 def expression @expression end |