Class: Mobility::Arel::Nodes::Hstore

Inherits:
HstoreDashArrow
  • Object
show all
Defined in:
lib/mobility/arel/nodes/pg_ops.rb

Instance Method Summary collapse

Instance Method Details

#eq(other) ⇒ Object


69
70
71
# File 'lib/mobility/arel/nodes/pg_ops.rb', line 69

def eq other
  other.nil? ? to_question.not : super
end

#to_questionObject


65
66
67
# File 'lib/mobility/arel/nodes/pg_ops.rb', line 65

def to_question
  HstoreQuestion.new left, right
end