Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/ify.rb

Instance Method Summary collapse

Instance Method Details

#ifyObject



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