Method: NoSE::Condition#initialize

Defined in:
lib/nose/statements.rb

#initialize(field, operator, value) ⇒ Condition

Returns a new instance of Condition.



9
10
11
12
13
14
15
16
17
# File 'lib/nose/statements.rb', line 9

def initialize(field, operator, value)
  @field = field
  @operator = operator
  @is_range = [:>, :>=, :<, :<=].include? operator
  @value = value

  # XXX: Not frozen by now to support modification during query execution
  # freeze
end