Object
copy from rails
# File lib/rails_best_practices/core/core_ext.rb, line 9 def underscore self.gsub(/::/, '/'). gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2'). gsub(/([a-z\d])([A-Z])/,'\1_\2'). tr("-", "_"). downcase end
[Validate]
Generated with the Darkfish Rdoc Generator 2.