Module: HAProxy::Treetop::ConfigBlockContainer
- Included in:
- BackendSection, DefaultsSection, FrontendSection, GlobalSection, ListenSection, UserlistSection
- Defined in:
- lib/haproxy/treetop/nodes.rb
Overview
Include this module if the node contains a config element.
Instance Method Summary collapse
Instance Method Details
#config_lines ⇒ Object
18 19 20 |
# File 'lib/haproxy/treetop/nodes.rb', line 18 def config_lines self.config_block.elements.select {|e| e.class == ConfigLine} end |
#option_lines ⇒ Object
14 15 16 |
# File 'lib/haproxy/treetop/nodes.rb', line 14 def option_lines self.config_block.elements.select {|e| e.class == OptionLine} end |