Sha256: 9a3dd4d322e67e086037b690ee2cbbab9f02e0109c1eab8827be7ebca7d1a7d9
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
module TimeCamp class ResourceCollection def initialize(response) @resources = [] end def size return @resources.size end def [](index) return @resources[index] end def each(&block) return @resources.each(&block) end def map(&block) return @resources.map(&block) end def select(&block) return @resources.select(&block) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-timecamp-0.0.2 | lib/ruby-timecamp/resource_collection.rb |