method

dasherize

ruby latest stable - Class: Bundler::Thor::Option

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

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