Class: Cyrel::AST::LimitNode

Inherits:
ClauseNode show all
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

Instance Method Summary collapse

Methods inherited from Node

#==, #accept

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

#expressionObject (readonly)

Returns the value of attribute expression.



8
9
10
# File 'lib/cyrel/ast/limit_node.rb', line 8

def expression
  @expression
end