Method: Puppet::Settings::IniFile#lines_in
- Defined in:
- lib/puppet/settings/ini_file.rb
#lines_in(section_name) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/puppet/settings/ini_file.rb', line 72 def lines_in(section_name) section_lines = [] current_section_name = DEFAULT_SECTION_NAME @lines.each do |line| if line.is_a?(SectionLine) current_section_name = line.name elsif current_section_name == section_name section_lines << line end end section_lines end |