class HolaGraknol::Translator

Public Class Methods

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

Public Instance Methods

hi() click to toggle source
# File lib/hola_graknol/translator.rb, line 6
def hi
    case @language
        when "spanish" then "hola mundo"
        when "norwegian" then "hei verden"
        else "hello world"
    end
end