Method: Rmpd::Command::Splitter#split

Defined in:
lib/rmpd/command.rb

#split(lines) ⇒ Object



213
214
215
216
217
218
219
220
221
222
# File 'lib/rmpd/command.rb', line 213

def split(lines)
  lines.reduce([]) do |c, i|
    if @regexp === i
      c << [i]
    else
      c.last << i
    end
    c
  end
end