Class: Construqt::Flavour::Ciscian::DlinkDgs15xx::Line

Inherits:
Object
  • Object
show all
Defined in:
lib/construqt/flavour/ciscian/dialect_dlink-dgs15xx.rb

Class Method Summary collapse

Class Method Details

.parse_line(line, lines, section, result) ⇒ Object



144
145
146
147
148
149
150
151
152
153
# 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