Class: Extended

Inherits:
CommandParser show all
Defined in:
lib/runnable/extended.rb

Overview

Parse the parameter hash using the extended standard.

Instance Method Summary collapse

Methods inherited from CommandParser

#add_param, #initialize

Constructor Details

This class inherits a constructor from CommandParser

Instance Method Details

#parseArray

Convert a hash in an array of ‘Extended style’ option strings.

Returns:

  • (Array)

    Extended-style parsed params.



25
26
27
# File 'lib/runnable/extended.rb', line 25

def parse
  @params.collect { |param , value|  ["-#{param}", "#{value}"] }
end