Sha256: bd07e071e5459ac09860a8274b2071fd69b785446562a8346afa1959650fcad4
Contents?: true
Size: 385 Bytes
Versions: 1
Compression:
Stored size: 385 Bytes
Contents
module Ro class Collection class List < ::Array include Klass attr_reader :root def initialize(root, ...) @root = root super(...) end def get(name) @root.get(name) end def [](index, ...) return get(index) if [String, Symbol].include?(index.class) super(index, ...) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ro-4.2.0 | lib/ro/collection/list.rb |