Class: LogStash::Config::AST::Elsif
- Defined in:
- lib/logstash/config/config_ast.rb
Instance Method Summary collapse
Instance Method Details
#compile ⇒ Object
259 260 261 262 263 |
# File 'lib/logstash/config/config_ast.rb', line 259 def compile children = recursive_inject { |e| e.is_a?(Branch) || e.is_a?(Plugin) } return "elsif #{condition.compile}\n" \ << children.collect(&:compile).map { |s| s.split("\n", -1).map { |l| " " + l }.join("\n") }.join("") << "\n" end |