123456789_123456789_123456789_123456789_123456789_

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:
self, Window, Node
Instance Chain:
Inherits: Arel::Nodes::Window
Defined in: activerecord/lib/arel/nodes/window.rb

Class Method Summary

Window - Inherited

Instance Attribute Summary

Window - Inherited

Node - Inherited

Instance Method Summary

Window - Inherited

Node - Inherited

#and

Factory method to create an And node.

#fetch_attribute, #invert,
#not

Factory method to create a Nodes::Not node that has the recipient of the caller as a child.

#or

Factory method to create a Grouping node that has an Or node as a child.

#to_sql

FIXME: this method should go away.

::Arel::FactoryMethods - Included

Constructor Details

.new(name) ⇒ NamedWindow

[ GitHub ]

  
# File 'activerecord/lib/arel/nodes/window.rb', line 71

def initialize(name)
  super()
  @name = name
end

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?.

[ GitHub ]

  
# File 'activerecord/lib/arel/nodes/window.rb', line 88

alias :== :eql?

#eql?(other) ⇒ Boolean Also known as: #==

[ GitHub ]

  
# File 'activerecord/lib/arel/nodes/window.rb', line 85

def eql?(other)
  super && self.name == other.name
end

#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