# This class is responsible for translating "hello world" based on the # given language class GemTutorial::Translator # Initialize translator with language # # @param language [String] the language def initialize(language) @language = language end # Print 'hello world' depending on the class language passed in # # @return [nil] Prints 'hello world'. def hi case @language when 'spanish' 'hola mundo' else 'hello world' end end end