module PigLatinRb
Constants
- VERSION
Public Class Methods
pig_latin(word)
click to toggle source
# File lib/pig_latin_rb.rb, line 7 def self.pig_latin(word) handler = if Constants::VOWELS.include?(word[0]) VowelHandler.new(word) else ConsonantHandler.new(word) end handler.print_pig_latin end