Class: Fluent::FilterWhere::Parser::NegateOpExp
- Defined in:
- lib/fluent/plugin/filter_where/parser/exp.rb
Instance Attribute Summary collapse
-
#exp ⇒ Object
readonly
Returns the value of attribute exp.
Instance Method Summary collapse
- #eval(record) ⇒ Object
-
#initialize(exp) ⇒ NegateOpExp
constructor
A new instance of NegateOpExp.
Constructor Details
#initialize(exp) ⇒ NegateOpExp
Returns a new instance of NegateOpExp.
168 169 170 |
# File 'lib/fluent/plugin/filter_where/parser/exp.rb', line 168 def initialize(exp) @exp = exp end |
Instance Attribute Details
#exp ⇒ Object (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 |