class Unk::Translator

Public Class Methods

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

Public Instance Methods

hi() click to toggle source
# File lib/unk/translator.rb, line 6
def hi
case @language
  when "english"
    puts "hello world"
  when "spanish"
    puts "hola mundo"
  else
    puts "hello world"
  end
end