Class: ParadeDB::Arel::Nodes::ArrayLiteral
- Inherits:
-
Arel::Nodes::Node
- Object
- Arel::Nodes::Node
- ParadeDB::Arel::Nodes::ArrayLiteral
- Defined in:
- lib/parade_db/arel/nodes.rb
Instance Attribute Summary collapse
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
- #hash ⇒ Object
-
#initialize(values) ⇒ ArrayLiteral
constructor
A new instance of ArrayLiteral.
Constructor Details
#initialize(values) ⇒ ArrayLiteral
Returns a new instance of ArrayLiteral.
112 113 114 |
# File 'lib/parade_db/arel/nodes.rb', line 112 def initialize(values) @values = Array(values) end |
Instance Attribute Details
#values ⇒ Object (readonly)
Returns the value of attribute values.
110 111 112 |
# File 'lib/parade_db/arel/nodes.rb', line 110 def values @values end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
120 121 122 123 |
# File 'lib/parade_db/arel/nodes.rb', line 120 def eql?(other) self.class == other.class && values == other.values end |
#hash ⇒ Object
116 117 118 |
# File 'lib/parade_db/arel/nodes.rb', line 116 def hash [self.class, values].hash end |