Sha256: b6d6b20c9ccc7af6d7663927866197e5140c8eb7812410b569ea0f9ad98f4f34
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
# frozen_string_literal: true module LIT module Object # @api public # @since 0.1.0 class Array def initialize(*values) values.each { |v| check_type!(v) } @values = values end def each(&block) @values.each(&block) end def to_a @values end def [](index) @values[index] end def __values__ @values end private def check_type!(value); end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
litl-0.1.1 | lib/lit/object/array.rb |
litl-0.1.0 | lib/lit/object/array.rb |