Class: Arel::Nodes::BindParam
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
- #hash ⇒ Object
-
#initialize(value) ⇒ BindParam
constructor
A new instance of BindParam.
- #nil? ⇒ Boolean
Methods inherited from Node
#_caller, #and, #each, #not, #or, #to_sql
Methods included from FactoryMethods
#create_and, #create_false, #create_join, #create_on, #create_string_join, #create_table_alias, #create_true, #grouping, #lower
Constructor Details
#initialize(value) ⇒ BindParam
Returns a new instance of BindParam.
7 8 9 10 |
# File 'lib/arel/nodes/bind_param.rb', line 7 def initialize(value) @value = value super() end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/arel/nodes/bind_param.rb', line 5 def value @value end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
16 17 18 19 |
# File 'lib/arel/nodes/bind_param.rb', line 16 def eql?(other) other.is_a?(BindParam) && value == other.value end |
#hash ⇒ Object
12 13 14 |
# File 'lib/arel/nodes/bind_param.rb', line 12 def hash [self.class, self.value].hash end |
#nil? ⇒ Boolean
22 23 24 |
# File 'lib/arel/nodes/bind_param.rb', line 22 def nil? value.nil? end |