Sha256: 356ef0958dc190ac329d53fd51bdf496904aee285b9bd6b06ab3220e3125e573

Contents?: true

Size: 342 Bytes

Versions: 1

Compression:

Stored size: 342 Bytes

Contents

module Watir
  module Generator
    module Util

      module_function

      def classify(regexp, str)
        if str =~ regexp
          $1
        else
          str
        end
      end

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

    end # Util
  end # Generator
end # Watir

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir-6.10.1 lib/watir/generator/base/util.rb