Class: ParadeDB::Arel::Nodes::QueryCast
- Inherits:
-
Arel::Nodes::Node
- Object
- Arel::Nodes::Node
- ParadeDB::Arel::Nodes::QueryCast
- Defined in:
- lib/parade_db/arel/nodes.rb
Instance Attribute Summary collapse
-
#expr ⇒ Object
readonly
Returns the value of attribute expr.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
- #hash ⇒ Object
-
#initialize(expr) ⇒ QueryCast
constructor
A new instance of QueryCast.
Constructor Details
#initialize(expr) ⇒ QueryCast
Returns a new instance of QueryCast.
50 51 52 |
# File 'lib/parade_db/arel/nodes.rb', line 50 def initialize(expr) @expr = expr end |
Instance Attribute Details
#expr ⇒ Object (readonly)
Returns the value of attribute expr.
48 49 50 |
# File 'lib/parade_db/arel/nodes.rb', line 48 def expr @expr end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
58 59 60 61 |
# File 'lib/parade_db/arel/nodes.rb', line 58 def eql?(other) self.class == other.class && expr == other.expr end |
#hash ⇒ Object
54 55 56 |
# File 'lib/parade_db/arel/nodes.rb', line 54 def hash [self.class, expr].hash end |