Class: OpenBuildServiceAPI::AbstractCollection
- Inherits:
-
Object
- Object
- OpenBuildServiceAPI::AbstractCollection
show all
- Extended by:
- Forwardable
- Includes:
- Enumerable
- Defined in:
- lib/collections/abstract_collection.rb
Instance Method Summary
collapse
Instance Method Details
#inspect ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/collections/abstract_collection.rb', line 8
def inspect
count = 1
output = '['
@data.each do |item|
if count == 30
output += item.to_s
output += ", ..." if @data.count > 30
break
else
output += "#{item}, "
count += 1
end
end
output += ']'
end
|