Sha256: e4f3b29369e66f0e60850fc7341c5e22c70a590554a05fb05279dc443da3ef8f
Contents?: true
Size: 498 Bytes
Versions: 4
Compression:
Stored size: 498 Bytes
Contents
require "mws/orders/document" module MWS module Orders class Collection < Document include Enumerable def each raise NotImplementedError end def empty? count == 0 end def inspect "#<#{self.class} #{ if count > 3 "[#{take(3).map(&:inspect).join(', ')}...]" else "[#{map(&:inspect).join(', ')}]" end }>" end alias_method :to_s, :inspect end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mws-orders-0.2.1 | lib/mws/orders/collection.rb |
mws-orders-0.2.0 | lib/mws/orders/collection.rb |
mws-orders-0.1.1 | lib/mws/orders/collection.rb |
mws-orders-0.1.0 | lib/mws/orders/collection.rb |