Class: HaproxyParser::SectionCollector

Inherits:
Object
  • Object
show all
Defined in:
lib/haproxy_parser/section_collector.rb

Constant Summary collapse

SECTIONS =
%w(defaults global frontend backend listen)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ SectionCollector

Returns a new instance of SectionCollector.



8
9
10
# File 'lib/haproxy_parser/section_collector.rb', line 8

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



7
8
9
# File 'lib/haproxy_parser/section_collector.rb', line 7

def path
  @path
end