class Arel::DeleteManager

Public Instance Methods

from(relation) click to toggle source
# File lib/arel/delete_manager.rb, line 9
def from relation
  @ast.relation = relation
  self
end
take(limit) click to toggle source
# File lib/arel/delete_manager.rb, line 14
def take limit
  @ast.limit = Nodes::Limit.new(Nodes.build_quoted(limit)) if limit
  self
end
wheres=(list) click to toggle source
# File lib/arel/delete_manager.rb, line 19
def wheres= list
  @ast.wheres = list
end

Public Class Methods

new() click to toggle source
# File lib/arel/delete_manager.rb, line 3
def initialize
  super
  @ast = Nodes::DeleteStatement.new
  @ctx = @ast
end