Flowdock
underscore(camel_cased_word) public

The reverse of camelize. Makes an underscored, lowercase form from the expression in the string.

Changes ’::’ to ’/’ to convert namespaces to paths.

Examples:

  "ActiveRecord".underscore         # => "active_record"
  "ActiveRecord::Errors".underscore # => active_record/errors
Show source
Register or log in to add new notes.