diff options
Diffstat (limited to 'lib/kgio.rb')
-rw-r--r-- | lib/kgio.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/kgio.rb b/lib/kgio.rb index 5de431b..f192074 100644 --- a/lib/kgio.rb +++ b/lib/kgio.rb @@ -16,6 +16,16 @@ module Kgio # PipeMethods#kgio_trywrite and SocketMethods#kgio_trywrite will return # :wait_writable when waiting for a read is required. WaitWritable = :wait_writable + + # autopush is no-op nowadays + @autopush = false + + class << self + attr_accessor :autopush # :nodoc: + def autopush? # :nodoc: + !!@autopush + end + end end require 'kgio_ext' |