public Method

Inflector.dasherize(underscored_word)

Replaces underscores with dashes in the string.

Example

"puni_puni" #=> "puni-puni"

Source Code

# File merb/core_ext/inflector.rb, line 180
def dasherize(underscored_word)
  underscored_word.gsub(/_/, '-')
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.