Class: LogStash::Config::AST::Else
- Inherits:
-
BranchEntry
- Object
- Treetop::Runtime::SyntaxNode
- Node
- BranchEntry
- LogStash::Config::AST::Else
- Defined in:
- lib/logstash/config/config_ast.rb
Instance Method Summary collapse
Methods inherited from Node
Instance Method Details
#compile ⇒ Object
436 437 438 439 440 |
# File 'lib/logstash/config/config_ast.rb', line 436 def compile children = recursive_inject { |e| e.is_a?(Branch) || e.is_a?(Plugin) } return "else\n" \ << children.collect(&:compile).map { |s| s.split("\n", -1).map { |l| " " + l }.join("\n") }.join("") << "\n" end |