Class: ParadeDB::Arel::Nodes::TokenizerCast
- Inherits:
-
Arel::Nodes::Node
- Object
- Arel::Nodes::Node
- ParadeDB::Arel::Nodes::TokenizerCast
- Defined in:
- lib/parade_db/arel/nodes.rb
Instance Attribute Summary collapse
-
#expr ⇒ Object
readonly
Returns the value of attribute expr.
-
#tokenizer_sql ⇒ Object
readonly
Returns the value of attribute tokenizer_sql.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
- #hash ⇒ Object
-
#initialize(expr, tokenizer_sql) ⇒ TokenizerCast
constructor
A new instance of TokenizerCast.
Constructor Details
#initialize(expr, tokenizer_sql) ⇒ TokenizerCast
Returns a new instance of TokenizerCast.
130 131 132 133 |
# File 'lib/parade_db/arel/nodes.rb', line 130 def initialize(expr, tokenizer_sql) @expr = expr @tokenizer_sql = tokenizer_sql end |
Instance Attribute Details
#expr ⇒ Object (readonly)
Returns the value of attribute expr.
128 129 130 |
# File 'lib/parade_db/arel/nodes.rb', line 128 def expr @expr end |
#tokenizer_sql ⇒ Object (readonly)
Returns the value of attribute tokenizer_sql.
128 129 130 |
# File 'lib/parade_db/arel/nodes.rb', line 128 def tokenizer_sql @tokenizer_sql end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
139 140 141 142 143 |
# File 'lib/parade_db/arel/nodes.rb', line 139 def eql?(other) self.class == other.class && expr == other.expr && tokenizer_sql == other.tokenizer_sql end |
#hash ⇒ Object
135 136 137 |
# File 'lib/parade_db/arel/nodes.rb', line 135 def hash [self.class, expr, tokenizer_sql].hash end |