Class: Travis::Surveillance::Builds
- Inherits:
-
Array
- Object
- Array
- Travis::Surveillance::Builds
- Defined in:
- lib/travis/surveillance/project.rb
Instance Method Summary collapse
Instance Method Details
#<<(item) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/travis/surveillance/project.rb', line 4 def <<(item) super # A bit expensive, but for now it'll do. self.sort_by! { |i| i.id } self.slice!(0..-11) if self.size > 10 end |