Module: TypeArray::IOWriter
- Defined in:
- lib/type_array/io.rb
Instance Method Summary collapse
Instance Method Details
#write(io) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/type_array/io.rb', line 20 def write(io) case io when BasicSocket io.send(to_s, 0) when IO io.write(to_s) end end |