Sha256: 54dbf206f727cc28550c8f5a94bcc67f0644529b3e35ed22faade4cb245971ca
Contents?: true
Size: 474 Bytes
Versions: 2
Compression:
Stored size: 474 Bytes
Contents
# frozen_string_literal: true module LIT module Object # @api public # @since 0.1.0 class Map attr_reader :values def initialize(values = {}) values = Utils::MapHash.new(values) values.each { |k, v| check_type!(k, v) } @values = values end def [](key) @values[key] end def __values__ @values.to_h end private def check_type!(key, value); end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
litl-0.1.1 | lib/lit/object/map.rb |
litl-0.1.0 | lib/lit/object/map.rb |