Sha256: 8d027072be90f13f3b371ff8170ea1673800cc5c2cf7f484a96269a23bcec278
Contents?: true
Size: 443 Bytes
Versions: 1
Compression:
Stored size: 443 Bytes
Contents
module Watir module HTML module Util module_function def classify(name) if name =~ /^HTML(.+)Element$/ $1 else name end end SPECIALS = { 'img' => 'image' } def paramify(str) if SPECIALS.has_key?(str) SPECIALS[str] else classify(str).snake_case end end end # Util end # HTML end # Watir
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watir-webdriver-0.0.7 | lib/watir-webdriver/html/util.rb |