Class: ReeString::Dasherize

Inherits:
Object
  • Object
show all
Includes:
Ree::FnDSL
Defined in:
lib/ree_lib/packages/ree_string/package/ree_string/functions/dasherize.rb

Instance Method Summary collapse

Instance Method Details

#call(underscored_word) ⇒ Object



14
15
16
# File 'lib/ree_lib/packages/ree_string/package/ree_string/functions/dasherize.rb', line 14

def call(underscored_word)
  underscored_word.tr("_", "-")
end