Class: Arel::Nodes::DeleteStatement

Inherits:
Binary show all
Defined in:
lib/arel/nodes/delete_statement.rb

Instance Attribute Summary collapse

Attributes inherited from Binary

#left, #right

Instance Method Summary collapse

Methods inherited from Binary

#eql?, #hash

Methods inherited from Node

#_caller, #and, #each, #not, #or, #to_sql

Methods included from FactoryMethods

#create_and, #create_false, #create_join, #create_on, #create_string_join, #create_table_alias, #create_true, #grouping, #lower

Constructor Details

#initialize(relation = nil, wheres = []) ⇒ DeleteStatement

Returns a new instance of DeleteStatement.



12
13
14
# File 'lib/arel/nodes/delete_statement.rb', line 12

def initialize relation = nil, wheres = []
  super
end

Instance Attribute Details

#limitObject

Returns the value of attribute limit.



5
6
7
# File 'lib/arel/nodes/delete_statement.rb', line 5

def limit
  @limit
end

Instance Method Details

#initialize_copy(other) ⇒ Object



16
17
18
19
# File 'lib/arel/nodes/delete_statement.rb', line 16

def initialize_copy other
  super
  @right = @right.clone
end