Sha256: 164d22020c923419accfeaf363fc8137d6a8b83335a4803b50d925562c10a1a4
Contents?: true
Size: 328 Bytes
Versions: 92
Compression:
Stored size: 328 Bytes
Contents
module Neo4j::ActiveNode class NodeListFormatter def initialize(list, max_elements = 5) @list = list @max_elements = max_elements end def inspect return @list.inspect if !@max_elements || @list.length <= @max_elements "[#{@list.take(5).map!(&:inspect).join(', ')}, ...]" end end end
Version data entries
92 entries across 92 versions & 2 rubygems