Class: Kanrisuru::Core::Apt::Parser::List
- Defined in:
- lib/kanrisuru/core/apt/parsers/list.rb
Class Method Summary collapse
Methods inherited from Base
extract_single_line, parse_apt_line, parse_apt_sources, parse_comma_values
Class Method Details
.parse(command) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/kanrisuru/core/apt/parsers/list.rb', line 9 def parse(command) lines = command.to_a lines.shift result = [] lines.each do |line| item = parse_apt_line(line) next unless item result << item end result end |