lib/async/io/address.rb in async-io-0.1.0 vs lib/async/io/address.rb in async-io-0.3.0
- old
+ new
@@ -40,10 +40,10 @@
end
def each(specifications, &block)
specifications.each do |specification|
if specification.is_a? self
- yield self
+ yield specification
else
# Perhaps detect options here?
yield self.new(specification)
end
end