Sha256: 77ac01eee8d6fd5041f2c9c1cf2f19ad42f1c753059772112054c828e42ec00a
Contents?: true
Size: 455 Bytes
Versions: 7
Compression:
Stored size: 455 Bytes
Contents
module ActiveMocker class Relation < Collection include Queries def initialize(collection=[]) super @from_limit = false end def inspect entries = to_a.take(11).map!(&:inspect) entries[10] = '...' if entries.size == 11 "#<#{self.class.name} [#{entries.join(', ')}]>" end def from_limit? @from_limit end private def set_from_limit @from_limit = true end end end
Version data entries
7 entries across 7 versions & 1 rubygems