lib/physical/package.rb in physical-0.3.1 vs lib/physical/package.rb in physical-0.3.2
- old
+ new
@@ -15,13 +15,15 @@
delegate [:dimensions, :width, :length, :height, :properties] => :container
def <<(item)
@items.add(item)
end
+ alias_method :add, :<<
def >>(item)
@items.delete(item)
end
+ alias_method :delete, :>>
def weight
container.weight + items.map(&:weight).reduce(Measured::Weight(0, :g), &:+) + void_fill_weight
end