Method: Rnp::Output.to_io

Defined in:
lib/rnp/output.rb

.to_io(io) ⇒ Output

Create an Output to write to an IO object.

Parameters:

  • io (IO, #write)

    the IO object

Returns:



85
86
87
# File 'lib/rnp/output.rb', line 85

def self.to_io(io)
  to_callback(io.method(:write))
end