Class: Arel::Nodes::DeleteStatement
- Defined in:
- lib/arel/nodes/delete_statement.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
Returns the value of attribute limit.
Attributes inherited from Binary
Instance Method Summary collapse
-
#initialize(relation = nil, wheres = []) ⇒ DeleteStatement
constructor
A new instance of DeleteStatement.
- #initialize_copy(other) ⇒ Object
Methods inherited from Binary
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
#limit ⇒ Object
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 |