Class: Construqt::Flavour::Ciscian::DlinkDgs15xx::Line
- Inherits:
-
Object
- Object
- Construqt::Flavour::Ciscian::DlinkDgs15xx::Line
- Defined in:
- lib/construqt/flavour/ciscian/dialect_dlink-dgs15xx.rb
Class Method Summary collapse
Class Method Details
.parse_line(line, lines, section, result) ⇒ Object
87 88 89 90 91 92 93 94 95 96 |
# File 'lib/construqt/flavour/ciscian/dialect_dlink-dgs15xx.rb', line 87 def self.parse_line(line, lines, section, result) return false unless ['line '].find{|i| line.to_s.start_with?(i) } section.add(line) 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 |