Sha256: 8d848bb1b65b8aa7cca58a7826b91ada9278249408ef71a53218b804e3483a89

Contents?: true

Size: 302 Bytes

Versions: 17

Compression:

Stored size: 302 Bytes

Contents

module Rapa
  class Language
    # @return [Hash]
    attr_reader :source

    # @param source [Hash]
    def initialize(source)
      @source = source
    end

    # @return [String]
    def name
      source["Name"]
    end

    # @return [String]
    def type
      source["Type"]
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rapa-0.6.0 lib/rapa/language.rb
rapa-0.5.7 lib/rapa/language.rb
rapa-0.5.6 lib/rapa/language.rb
rapa-0.5.5 lib/rapa/language.rb
rapa-0.5.4 lib/rapa/language.rb
rapa-0.5.3 lib/rapa/language.rb
rapa-0.5.2 lib/rapa/language.rb
rapa-0.5.1 lib/rapa/language.rb
rapa-0.5.0 lib/rapa/language.rb
rapa-0.4.3 lib/rapa/language.rb
rapa-0.4.2 lib/rapa/language.rb
rapa-0.4.1 lib/rapa/language.rb
rapa-0.4.0 lib/rapa/language.rb
rapa-0.3.3 lib/rapa/language.rb
rapa-0.3.2 lib/rapa/language.rb
rapa-0.3.1 lib/rapa/language.rb
rapa-0.3.0 lib/rapa/language.rb