Sha256: c5dae6ab56f3f28bc3c1e915927bc6dc139b332b6af60d15fc240e69547e64ba

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 "chinese"
        "你好,世界!"
      when "spanish"
        "hola mundo!"
      else
        "Hello World!"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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