lib/songbooks/components/section.rb
def parse_line!(_line)
        line = _line.dup.rstrip
        line_components = []

        until line.length.zero?
          component = Songbooks::Components::Chord.munch_chord(line)
          component ||= Songbooks::Components::Literal.munch_literal(line)
          line_components << component
        end

        add_line(line_components)
      end
#
# Parses the given line (chords and literals) and adds it to this section
#
Parses the given line (chords and literals) and adds it to this section
Parses the given line ( chords and literals ) and adds it to this section
def parse_line!(_line)
        line = _line.dup.rstrip
        line_components = []
        until line.length.zero?
          component = Songbooks::Components::Chord.munch_chord(line)
          component ||= Songbooks::Components::Literal.munch_literal(line)
          line_components << component
        end
        add_line(line_components)
      end
def parse_line! ( _line ) line = _line . dup . rstrip line_components = [ ] until line . length . zero? component = Songbooks :: Components :: Chord . munch_chord ( line ) component ||= Songbooks :: Components :: Literal . munch_literal ( line ) line_components << component end add_line ( line_components ) end
Parses the given line (chords and literals) and adds it to this section
Parses the given line ( chords and literals ) and adds it to this section
_line