lib/gogyou/mixin.rb in gogyou-0.2 vs lib/gogyou/mixin.rb in gogyou-0.2.1

- old
+ new

@@ -5,11 +5,11 @@ module Gogyou module Extensions module Object module Mixin def infect_from(*obj) - obj.each { |o| taint if o.tainted?; untrust if o.untrusted? } + obj.each { |o| taint if o.tainted? } self end end end @@ -134,10 +134,9 @@ end end def swapbyte(bytesize) num = 0 - mask = 0xff bytesize.times do |i| num <<= 8 num |= (self >> (i * 8)) & 0xff end num