method
dasherize
v2_6_3 -
Show latest stable
- Class:
Bundler::Thor::Option
dasherize(str)protected
No documentation available.
# File lib/bundler/vendor/thor/lib/thor/parser/option.rb, line 142
def dasherize(str)
(str.length > 1 ? "--" : "-") + str.tr("_", "-")
end