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.2.3 lib/watir-webdriver/html/util.rb
watir-webdriver-0.2.2 lib/watir-webdriver/html/util.rb
watir-webdriver-0.2.1 lib/watir-webdriver/html/util.rb
watir-webdriver-0.2.0 lib/watir-webdriver/html/util.rb
watir-webdriver-0.2.0.dev2 lib/watir-webdriver/html/util.rb
watir-webdriver-0.2.0.dev lib/watir-webdriver/html/util.rb
watir-webdriver-0.1.9 lib/watir-webdriver/html/util.rb
watir-webdriver-0.1.8 lib/watir-webdriver/html/util.rb
watir-webdriver-0.1.7 lib/watir-webdriver/html/util.rb
watir-webdriver-0.1.6 lib/watir-webdriver/html/util.rb
watir-webdriver-0.1.5 lib/watir-webdriver/html/util.rb
watir-webdriver-0.1.4 lib/watir-webdriver/html/util.rb
watir-webdriver-0.1.3 lib/watir-webdriver/html/util.rb
watir-webdriver-0.1.2 lib/watir-webdriver/html/util.rb
ayanko-watir-webdriver-0.1.1.1 lib/watir-webdriver/html/util.rb
watir-webdriver-0.1.1 lib/watir-webdriver/html/util.rb
watir-webdriver-0.1.0 lib/watir-webdriver/html/util.rb
watir-webdriver-0.0.9 lib/watir-webdriver/html/util.rb
watir-webdriver-0.0.8 lib/watir-webdriver/html/util.rb