Module: Inflexion::Methods
- Included in:
- String
- Defined in:
- lib/inflexion/methods.rb
Instance Method Summary collapse
Instance Method Details
#pastize ⇒ Object
5 6 7 |
# File 'lib/inflexion/methods.rb', line 5 def pastize self.verb.conjugate(tense: :past).split(' ').last end |
#peopleize ⇒ Object
9 10 11 12 |
# File 'lib/inflexion/methods.rb', line 9 def peopleize str = (self.last == 'e') ? self.chop : self str + 'ers' end |