Method: RIO::Stream::IOBase#add_filter

Defined in:
lib/rio/stream.rb

#add_filter(mod) ⇒ Object



81
82
83
84
85
# File 'lib/rio/stream.rb', line 81

def add_filter(mod)
  unless ioh.kind_of?(mod)
    ioh.extend(mod)
  end
end