module Capybara::Wheel::Includes::ClassIncludes

Public Instance Methods

make_const(string) click to toggle source
# File lib/capybara/wheel/includes.rb, line 25
def make_const(string)

end
underscore(string) click to toggle source
# File lib/capybara/wheel/includes.rb, line 17
def underscore(string)
  string.gsub(/::/, '/').
          gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
          gsub(/([a-z\d])([A-Z])/,'\1_\2').
          tr("-", "_").
          downcase
end