Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ify.rb
Instance Method Summary collapse
Instance Method Details
#ify ⇒ Object
4 5 6 7 8 |
# File 'lib/ify.rb', line 4 def ify() str = self.rstrip str.sub! /[aeiouy]$/, '' if str.split.last.length > 3 "#{str}ify" end |