class HolaEverybody::Translator

Public Class Methods

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

Public Instance Methods

hi() click to toggle source
# File lib/hola_everybody/translator.rb, line 8
def hi
  case @language
  when "spanish"
    "hola todos"
  else
    "hello everybody"
  end
end