lib/io/endpoint/generic.rb in io-endpoint-0.1.0 vs lib/io/endpoint/generic.rb in io-endpoint-0.2.0
- old
+ new
@@ -81,26 +81,9 @@
end
end
end
end
- # Map all endpoints by invoking `#bind`.
- # @yield the bound wrapper.
- def bound
- wrappers = []
-
- self.each do |endpoint|
- wrapper = endpoint.bind
- wrappers << wrapper
-
- yield wrapper
- end
-
- return wrappers
- ensure
- wrappers.each(&:close) if $!
- end
-
# Create an Endpoint instance by URI scheme. The host and port of the URI will be passed to the Endpoint factory method, along with any options.
#
# @param string [String] URI as string. Scheme will decide implementation used.
# @param options keyword arguments passed through to {#initialize}
#