Module: Hilbert::Parser::ListParser
- Includes:
- Base
- Defined in:
- lib/hilbert/parser/list_parser.rb
Class Method Summary collapse
Class Method Details
.execute(lexed) ⇒ Object
5 6 7 8 |
# File 'lib/hilbert/parser/list_parser.rb', line 5 def execute(lexed) arys = lexed.split(/ *, */).map { |e| e.split(/ *: */).map { |e2| e2.delete(' ') } } ListApi.execute(arys) end |