Method: Cod::IOPair#write

Defined in:
lib/cod/iopair.rb

#write(buf) ⇒ Object



17
18
19
20
21
# File 'lib/cod/iopair.rb', line 17

def write(buf)
  close_r
  raise Cod::ReadOnlyChannel unless w
  w.write(buf)
end