Module: SimpleStates::Helpers
- Included in:
- States
- Defined in:
- lib/simple_states/helpers.rb
Instance Method Summary collapse
Instance Method Details
#to_past(string) ⇒ Object
3 4 5 |
# File 'lib/simple_states/helpers.rb', line 3 def to_past(string) "#{string}ed".sub(/eed$/, 'ed') end |