Class: Arel::Nodes::Casted
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/casted.rb |
Class Method Summary
- .new(value, attribute) ⇒ Casted constructor
Instance Attribute Summary
- #attribute readonly
- #nil? ⇒ Boolean readonly
- #value (also: #value_before_type_cast) readonly
-
#value_before_type_cast
readonly
Alias for #value.
Node - Inherited
Instance Method Summary
-
#==(other)
Alias for #eql?.
- #eql?(other) ⇒ Boolean (also: #==)
- #hash
- #value_for_database
::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(value, attribute) ⇒ Casted
Instance Attribute Details
#attribute (readonly)
[ GitHub ]# File 'activerecord/lib/arel/nodes/casted.rb', line 6
attr_reader :value, :attribute
#nil? ⇒ Boolean (readonly)
[ GitHub ]
# File 'activerecord/lib/arel/nodes/casted.rb', line 15
def nil?; value.nil?; end
#value (readonly) Also known as: #value_before_type_cast
[ GitHub ]# File 'activerecord/lib/arel/nodes/casted.rb', line 6
attr_reader :value, :attribute
#value_before_type_cast (readonly)
Alias for #value.
# File 'activerecord/lib/arel/nodes/casted.rb', line 7
alias :value_before_type_cast :value
Instance Method Details
#==(other)
Alias for #eql?.
# File 'activerecord/lib/arel/nodes/casted.rb', line 34
alias :== :eql?