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_linesObject



20
21
22
# File 'lib/haproxy/treetop/nodes.rb', line 20

def config_lines
  config_block.elements.select {|e| e.class == ConfigLine}
end

#option_linesObject



16
17
18
# File 'lib/haproxy/treetop/nodes.rb', line 16

def option_lines
  config_block.elements.select {|e| e.class == OptionLine}
end