class RedSnapper::Group

Attributes

files[R]
size[R]

Public Class Methods

new() click to toggle source
# File lib/redsnapper.rb, line 19
def initialize
  @files = []
  @size = 0
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/redsnapper.rb, line 27
def <=>(other)
  other.size <=> size
end
add(name, size) click to toggle source
# File lib/redsnapper.rb, line 23
def add(name, size)
  @files << name
  @size += size
end