class Translator
Public Class Methods
new(language)
click to toggle source
# File lib/DinnerLab_Plaid/translator.rb, line 3 def initialize(language) @language = language end
Public Instance Methods
hi()
click to toggle source
# File lib/DinnerLab_Plaid/translator.rb, line 8 def hi if (@language == 'korean') hello = "안녕하세요." puts hello hello elsif (@language == 'english') hello = "Hello World." puts hello hello else hello = "Ugh, hello..." puts hello hello end end