Class: Arel::Nodes::ToTsquery

Inherits:
NamedFunction
  • Object
show all
Defined in:
lib/pg_searchable/arel/nodes/to_tsquery.rb

Instance Method Summary collapse

Constructor Details

#initialize(query, dictionary = 'simple') ⇒ ToTsquery

Returns a new instance of ToTsquery.



6
7
8
# File 'lib/pg_searchable/arel/nodes/to_tsquery.rb', line 6

def initialize(query, dictionary = 'simple')
  super(:to_tsquery, [dictionary, query])
end