class String

Public Instance Methods

jejefy() click to toggle source
# File lib/jejefy/core_ext/string.rb, line 2
def jejefy
  str = self.gsub /a/, "4"
  str = str.gsub /e/, "3"
  str = str.gsub /o/, "0"
  str = str.gsub /i/, "!"

  str
end
vowel?() click to toggle source
# File lib/jejefy/core_ext/string.rb, line 11
def vowel?
  self.split("").map { |c| c.send(:chck_vwl) }
end

Private Instance Methods

chck_vwl() click to toggle source
# File lib/jejefy/core_ext/string.rb, line 17
def chck_vwl
  Jejefy::VOWELS.include? self
end