Method: Unpack#diff
- Defined in:
- lib/unpack.rb
#diff ⇒ Object
142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/unpack.rb', line 142 def diff # The code below this line can only be called once return @removeable if @removeable.first.class == Container # Removing some non welcome data @removeable.reject!{|item| @removeable[item][:diff].nil? or @removeable[item][:diff].empty?} @removeable = @removeable.map do |value| Container.new(files: value.last[:diff], directory: value.first) end # Never return the hash @removeable.empty? ? [] : @removeable end |