Class: Arel::Nodes::Nary
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
NodeExpression ,
Node
|
|
Instance Chain:
|
|
Inherits: |
Arel::Nodes::NodeExpression
|
Defined in: | activerecord/lib/arel/nodes/nary.rb |
Class Method Summary
- .new(children) ⇒ Nary constructor
Instance Attribute Summary
Instance Method Summary
-
#==(other)
Alias for #eql?.
- #eql?(other) ⇒ Boolean (also: #==)
- #fetch_attribute(&block)
- #hash
- #left
- #right
::Arel::Math
- Included
::Arel::OrderPredications
- Included
::Arel::AliasPredication
- Included
::Arel::Predications
- Included
::Arel::Expressions
- Included
Node
- Inherited
#and | Factory method to create an And node. |
#fetch_attribute, #invert, | |
#not | Factory method to create a |
#or | |
#to_sql | FIXME: this method should go away. |
::Arel::FactoryMethods
- Included
#cast, #coalesce, #create_and, #create_false, #create_join, #create_on, #create_string_join, #create_table_alias, #create_true, #grouping, | |
#lower | Create a LOWER() function. |
Constructor Details
.new(children) ⇒ Nary
Instance Attribute Details
#children (readonly)
[ GitHub ]# File 'activerecord/lib/arel/nodes/nary.rb', line 6
attr_reader :children
Instance Method Details
#==(other)
Alias for #eql?.
# File 'activerecord/lib/arel/nodes/nary.rb', line 33
alias :== :eql?
#eql?(other) ⇒ Boolean
Also known as: #==
#fetch_attribute(&block)
[ GitHub ]#hash
[ GitHub ]# File 'activerecord/lib/arel/nodes/nary.rb', line 25
def hash [self.class, children].hash end
#left
[ GitHub ]# File 'activerecord/lib/arel/nodes/nary.rb', line 13
def left children.first end
#right
[ GitHub ]# File 'activerecord/lib/arel/nodes/nary.rb', line 17
def right children[1] end