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.

Since:

  • 0.5.0

Class Method Summary collapse

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.

Since:

  • 0.5.0



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