Method: Drydock#decanonize

Defined in:
lib/drydock.rb

#decanonize(cmd) ⇒ Object

Returns a string version of cmd, decanonized. Lowercase, ‘_’ is replaced with ‘-’



806
807
808
809
# File 'lib/drydock.rb', line 806

def decanonize(cmd)
  return unless cmd
  cmd.to_s.tr('_', '-')
end