Module: SimpleBdd
- Defined in:
- lib/simple_bdd.rb,
lib/simple_bdd/version.rb,
lib/simple_bdd/step_notification.rb,
lib/simple_bdd/step_not_implemented.rb
Defined Under Namespace
Classes: StepNotImplemented, StepNotification
Constant Summary collapse
- PRESERVED_CHARS =
'\\w'
- CONVERTED_CHARS =
Regexp.escape(' /-')
- VERSION =
"0.1.0"
Instance Method Summary collapse
Instance Method Details
#methodize(message) ⇒ Object
36 37 38 39 40 41 |
# File 'lib/simple_bdd.rb', line 36 def methodize() .downcase .gsub(/[^#{PRESERVED_CHARS}#{CONVERTED_CHARS}]/, "") .gsub(/[#{CONVERTED_CHARS}]+/, "_") end |