Class: Fluent::FilterWhere::Parser::NegateOpExp

Inherits:
Exp
  • Object
show all
Defined in:
lib/fluent/plugin/filter_where/parser/exp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exp) ⇒ NegateOpExp

Returns a new instance of NegateOpExp.

Parameters:



168
169
170
# File 'lib/fluent/plugin/filter_where/parser/exp.rb', line 168

def initialize(exp)
  @exp = exp
end

Instance Attribute Details

#expObject (readonly)

Returns the value of attribute exp.



165
166
167
# File 'lib/fluent/plugin/filter_where/parser/exp.rb', line 165

def exp
  @exp
end

Instance Method Details

#eval(record) ⇒ Object



172
173
174
# File 'lib/fluent/plugin/filter_where/parser/exp.rb', line 172

def eval(record)
  ! exp.eval(record)
end