lib/qualitysmith_extensions/console/command.rb in qualitysmith_extensions-0.0.33 vs lib/qualitysmith_extensions/console/command.rb in qualitysmith_extensions-0.0.34
- old
+ new
@@ -35,10 +35,10 @@
require 'escape' # http://www.a-k-r.org/escape/
# TODO Test
class String
def option_demethodize
- self.sub('__','--').sub('_','-')
+ self.sub('__','--').gsub('_','-')
end
def option_methodize
self.gsub('-','_')
end
end