Method: Arel::TreeManager::StatementMethods#take

Defined in:
lib/arel/tree_manager.rb

#take(limit) ⇒ Object



8
9
10
11
# File 'lib/arel/tree_manager.rb', line 8

def take(limit)
  @ast.limit = Nodes::Limit.new(Nodes.build_quoted(limit)) if limit
  self
end