Module: LogStashCompilerLSCLGrammar::LogStash::Compiler::LSCL::AST::Expression
- Defined in:
- lib/logstash/compiler/lscl.rb
Instance Method Summary collapse
Instance Method Details
#expr ⇒ Object
415 416 417 418 419 420 421 422 423 424 425 |
# File 'lib/logstash/compiler/lscl.rb', line 415 def expr # If we have a more specific type (like a Negative expression) use that if defined?(super) return super end exprs = self.recursive_select(Condition, Selector).map(&:expr) raise "Exprs should only have one part!" if exprs.size != 1 exprs.first end |