class Hallo_Dlimonov::Translator
Public Class Methods
new(lang)
click to toggle source
# File lib/hallo_dlimonov/translator.rb, line 2 def initialize(lang) @lang = lang end
Public Instance Methods
hallo()
click to toggle source
# File lib/hallo_dlimonov/translator.rb, line 6 def hallo case @lang when 'spanish' 'hola mundo' when 'german' 'hallo Welt' when 'russian' 'привет мир' else 'hello world' end end