Sha256: 4c599fab2b1b971c64b531725d1091a84f0ab91673b9d2383dd79ca28474704a

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 Bytes

Contents

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

  def hi
    case @language
    when "spanish"
      "hola mundo"
    when "binary"
      "01001000 01100101 01101100 01101100 01101111 01110111 00100000 01110111 01101111 01110010 01101100 01100100 00100001"
    else
      "Hello world!"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hola_mlsayre-0.0.4 lib/hola/translator.rb