Class: Extended
- Inherits:
-
CommandParser
- Object
- CommandParser
- Extended
- Defined in:
- lib/runnable/extended.rb
Overview
Parse the parameter hash using the extended standard.
Instance Method Summary collapse
-
#parse ⇒ Array
Convert a hash in an array of ‘Extended style’ option strings.
Methods inherited from CommandParser
Constructor Details
This class inherits a constructor from CommandParser
Instance Method Details
#parse ⇒ Array
Convert a hash in an array of ‘Extended style’ option strings.
25 26 27 |
# File 'lib/runnable/extended.rb', line 25 def parse @params.collect { |param , value| ["-#{param}", "#{value}"] } end |