Class: ParadeDB::Arel::Nodes::TokenizerCast

Inherits:
Arel::Nodes::Node
  • Object
show all
Defined in:
lib/parade_db/arel/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#exprObject (readonly)

Returns the value of attribute expr.



128
129
130
# File 'lib/parade_db/arel/nodes.rb', line 128

def expr
  @expr
end

#tokenizer_sqlObject (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: ==

Returns:

  • (Boolean)


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

#hashObject



135
136
137
# File 'lib/parade_db/arel/nodes.rb', line 135

def hash
  [self.class, expr, tokenizer_sql].hash
end