Module: ActsInRelation::Supports::Verb
- Defined in:
- lib/acts_in_relation/supports/verb.rb
Constant Summary collapse
- PATCHES =
{ 'follow' => 'following' }
Instance Method Summary collapse
- #pastize ⇒ Object
-
#peoplize ⇒ Object
TODO: Implement this method more logically.
- #progressize ⇒ Object
Instance Method Details
#pastize ⇒ Object
10 11 12 |
# File 'lib/acts_in_relation/supports/verb.rb', line 10 def pastize verb.conjugate(tense: :past).split(' ').last end |
#peoplize ⇒ Object
TODO: Implement this method more logically
21 22 23 24 |
# File 'lib/acts_in_relation/supports/verb.rb', line 21 def peoplize action = (last == 'e') ? chop : self action + 'ers' end |