class Translator

Public Class Methods

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

Public Instance Methods

hi() click to toggle source
# File lib/helloworld_dh/translator.rb, line 6
def hi
  case @language
  when 'Japanese'
    'これは私の初めてのジェムです!'
  when 'English'
    'This is my first ruby gem!'
  when 'Korean'
    '이것은 저의 첫번째 루비 젬입니다 !!'
  end
end