Module: Parse
- Defined in:
- lib/parse.rb
Class Method Summary collapse
Class Method Details
.option_to_name_and_value(option) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/parse.rb', line 2 def Parse.option_to_name_and_value(option) splitted = option.split('=') name = splitted[0] name = name.gsub(/[-]/, '') value = splitted[1] value = value.gsub(/^"/, '').gsub(/"$/, '') { :name => name, :value => value } end |