class Hola::Translator

Public Class Methods

new(language = "english") click to toggle source
# File lib/hola/translator.rb, line 4
def initialize(language = "english")
  @language = language
end

Public Instance Methods

hi() click to toggle source
# File lib/hola/translator.rb, line 8
def hi
  case @language
  when "spanish"
    "hola mundo"
  when "korean"
    "anyoung ha se yo"
  when "dutch"
    "hallo wereld"
  when "polish"
    "witaj świecie"
  else
    "hello world"
  end
end