Sha256: 221bc04185e3fc2e06088db759ac60f28d1133c24d5b7a34e42c8871bf302886

Contents?: true

Size: 256 Bytes

Versions: 1

Compression:

Stored size: 256 Bytes

Contents

class BoneHola::Translator
  def initialize(language)
    @language = language
  end

  def hi
    case @language
      when "english"
        "Hello World!"
      when "spanish"
        "hola mundo!"
      else
        "你好,世界!"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bone_hola-0.0.3 lib/bone_hola/translator.rb