Class: Arel::Nodes::Comment
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Node
|
|
Instance Chain:
self,
Node ,
::Arel::FactoryMethods
|
|
Inherits: |
Arel::Nodes::Node
|
Defined in: | activerecord/lib/arel/nodes/comment.rb |
Class Method Summary
- .new(values) ⇒ Comment constructor
Instance Attribute Summary
Instance Method Summary
-
#==(other)
Alias for #eql?.
- #eql?(other) ⇒ Boolean (also: #==)
- #hash
- #initialize_copy(other)
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(values) ⇒ Comment
Instance Attribute Details
#values (readonly)
[ GitHub ]# File 'activerecord/lib/arel/nodes/comment.rb', line 6
attr_reader :values
Instance Method Details
#==(other)
Alias for #eql?.
# File 'activerecord/lib/arel/nodes/comment.rb', line 26
alias :== :eql?
#eql?(other) ⇒ Boolean
Also known as: #==
#hash
[ GitHub ]# File 'activerecord/lib/arel/nodes/comment.rb', line 18
def hash [@values].hash end
#initialize_copy(other)
[ GitHub ]# File 'activerecord/lib/arel/nodes/comment.rb', line 13
def initialize_copy(other) super @values = @values.clone end