Sha256: 04910dd0d9b0eb3e510a65a95faf31675dca5338f17ebe9b4f2c37ccc05c9d7c

Contents?: true

Size: 304 Bytes

Versions: 59

Compression:

Stored size: 304 Bytes

Contents

module Watir
  module HTML
    module Util

      module_function

      def classify(name)
        if name =~ /^HTML(.+)Element$/
          $1
        else
          name
        end
      end

      def paramify(str)
        classify(str).snake_case
      end

    end # Util
  end # HTML
end # Watir

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
watir-webdriver-0.7.0 lib/watir-webdriver/html/util.rb
watir-webdriver-0.6.11 lib/watir-webdriver/html/util.rb
watir-webdriver-0.6.10 lib/watir-webdriver/html/util.rb
watir-webdriver-0.6.9 lib/watir-webdriver/html/util.rb
watir-webdriver-0.6.8 lib/watir-webdriver/html/util.rb
watir-webdriver-0.6.7 lib/watir-webdriver/html/util.rb
watir-webdriver-0.6.6 lib/watir-webdriver/html/util.rb
watir-webdriver-0.6.5 lib/watir-webdriver/html/util.rb
watir-webdriver-0.6.4 lib/watir-webdriver/html/util.rb
watir-webdriver-0.6.3 lib/watir-webdriver/html/util.rb
watir-webdriver-0.6.2 lib/watir-webdriver/html/util.rb
watir-webdriver-0.6.1 lib/watir-webdriver/html/util.rb
watir-webdriver-0.6.0 lib/watir-webdriver/html/util.rb
watir-webdriver-0.5.8 lib/watir-webdriver/html/util.rb
watir-webdriver-0.5.7 lib/watir-webdriver/html/util.rb
watir-webdriver-0.5.6 lib/watir-webdriver/html/util.rb
watir-webdriver-0.5.5 lib/watir-webdriver/html/util.rb
watir-webdriver-0.5.4 lib/watir-webdriver/html/util.rb
watir-webdriver-0.5.3 lib/watir-webdriver/html/util.rb
watir-webdriver-0.5.2 lib/watir-webdriver/html/util.rb