Sha256: a95769344c610dbb9566f643a0b0d79b08fb905e8b65f900d07080ca30fd5d7f

Contents?: true

Size: 280 Bytes

Versions: 1

Compression:

Stored size: 280 Bytes

Contents

class FirstGem::Translator
    def initialize(language)
      @language = language
    end
  
    def hi
      case @language
      when "arabic"
        "مرحبًا بالعالم"
      when "spanish"
        "hola mundo"
      else
        "hello world"
      end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
first_gem_rb-0.1.0 lib/first_gem/translator.rb