module Net::SSH::Test::Extensions::IO
An extension to the built-in ::IO class. Simply redefines IO.select so that it can be scripted in Net::SSH unit tests.
Public Class Methods
extension_enabled?()
click to toggle source
# File lib/net/ssh/test/extensions.rb, line 130 def self.extension_enabled? @extension_enabled end
with_test_extension() { || ... }
click to toggle source
# File lib/net/ssh/test/extensions.rb, line 120 def self.with_test_extension(&block) orig_value = @extension_enabled @extension_enabled = true begin yield ensure @extension_enabled = orig_value end end