write an extension to the String class to provide it : String class Extension String Ruby January 4, 2020 class String def vowels self.scan(/[aeiou]/i) end end puts "This is a test".vowels.join('-') Post navigationwrite a factorial method in C using RubyInline: : Embeded C Development Rubywrite elsif statement a little tighter by using colons after the symbols: : If Statement Ruby Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *CommentName * Email * Website