class Hola::Translator

Public Class Methods

new(language) click to toggle source
# File lib/hola_iselldonuts/translator.rb, line 5
def initialize(language)
  @language = language
end

Public Instance Methods

hi() click to toggle source
# File lib/hola_iselldonuts/translator.rb, line 9
def hi
  case @language
  when :es
    'hola mundo'
  else
    'hello world'
  end
end