Module: Dry::CLI::Inflector Private
- Defined in:
- lib/dry/cli/inflector.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .dasherize(input) ⇒ Object private
Class Method Details
.dasherize(input) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 13 14 |
# File 'lib/dry/cli/inflector.rb', line 10 def self.dasherize(input) return nil unless input input.to_s.downcase.gsub(/[[[:space:]]_]/, "-") end |