class FireEditor::Translator

Public Class Methods

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

Public Instance Methods

hi() click to toggle source
# File lib/fire_editor/translator.rb, line 7
def hi
    case @language
    when "spanish"
    "hola mundo"
    else
    "hello world"
    end
end