Module: EmailStepsWordHelpers
- Defined in:
- lib/email_steps.rb
Overview
A couple methods to handle some words in these steps
Instance Method Summary collapse
Instance Method Details
#get_address(word) ⇒ Object
22 23 24 25 |
# File 'lib/email_steps.rb', line 22 def get_address(word) return nil if word == "I" || word == "they" word end |
#get_amount(word) ⇒ Object
27 28 29 30 31 |
# File 'lib/email_steps.rb', line 27 def get_amount(word) return 0 if word == "no" return 1 if word == "a" || word == "an" word.to_i end |