class Construqt::Flavour::Ciscian::DlinkDgs15xx::Line

Public Class Methods

parse_line(line, lines, section, result) click to toggle source
# File lib/construqt/flavour/ciscian/dialect_dlink-dgs15xx.rb, line 144
def self.parse_line(line, lines, section, result)
  return false unless ['line '].find{|i| line.to_s.start_with?(i) }
  section.add(line, NestedSection) do |_section|
    while line = lines.shift
      break if result.dialect.block_end?(line.to_s)
      result.parse_line(line, lines, _section, result)
    end
  end
  true
end