Class: Kanrisuru::Core::System::Parser::History
- Inherits:
-
Object
- Object
- Kanrisuru::Core::System::Parser::History
- Defined in:
- lib/kanrisuru/core/system/parsers/history.rb
Class Method Summary collapse
Class Method Details
.parse(command) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/kanrisuru/core/system/parsers/history.rb', line 8 def self.parse(command) lines = command.to_a lines.map do |line| line.split(/^\d+\s+/)[1] end end |