Module: Watir::Generator::Util
- Defined in:
- lib/watir/generator/base/util.rb
Class Method Summary collapse
Class Method Details
.classify(regexp, str) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/watir/generator/base/util.rb', line 8 def classify(regexp, str) if str =~ regexp Regexp.last_match(1) else str end end |
.paramify(regexp, str) ⇒ Object
16 17 18 |
# File 'lib/watir/generator/base/util.rb', line 16 def paramify(regexp, str) classify(regexp, str).snake_case end |