Parent

Methods

Class/Module Index [+]

Quicksearch

String

Public Instance Methods

underscore() click to toggle source

lifted from rails

# File lib/feed_tools/vendor/html5/lib/html5/filters/validator.rb, line 24
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.