lib/haversack/item.rb in haversack-0.2.0 vs lib/haversack/item.rb in haversack-0.3.0
- old
+ new
@@ -2,10 +2,10 @@
class Item
attr_accessor :weight
attr_accessor :size
attr_accessor :data
- def initialize(weight:, size: 1, data: nil)
+ def initialize(weight: 1, size: 1, data: nil)
@weight = weight
@size = size
@data = data
end
end