Define the following class without class MaskedString, def tr_vowel and def self.tr_vowel
class MaskedString < String
def tr_vowel
tr 'aeiou', '*'
end
def self.tr_vowel str
str.tr 'aeiou', '*'
end
end
Hints:
This page was last updated on 20th Dec. 2009.