Class: Arel::Nodes::NamedWindow
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
Arel::Nodes::Window
|
Defined in: | activerecord/lib/arel/nodes/window.rb |
Class Method Summary
Instance Attribute Summary
Instance Method Summary
-
#==(other)
Alias for #eql?.
- #eql?(other) ⇒ Boolean (also: #==)
- #hash
- #initialize_copy(other)
Window
- Inherited
#== | Alias for Window#eql?. |
#eql?, #frame, #hash, #initialize_copy, #order, #partition, #range, #rows |
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(name) ⇒ NamedWindow
Instance Attribute Details
#name (rw)
[ GitHub ]# File 'activerecord/lib/arel/nodes/window.rb', line 69
attr_accessor :name
Instance Method Details
#==(other)
Alias for #eql?.
# File 'activerecord/lib/arel/nodes/window.rb', line 88
alias :== :eql?
#eql?(other) ⇒ Boolean
Also known as: #==
#hash
[ GitHub ]# File 'activerecord/lib/arel/nodes/window.rb', line 81
def hash super ^ @name.hash end
#initialize_copy(other)
[ GitHub ]# File 'activerecord/lib/arel/nodes/window.rb', line 76
def initialize_copy(other) super @name = other.name.clone end