Method: Webmachine::Streaming::CallableEncoder#to_proc

Defined in:
lib/webmachine/streaming/callable_encoder.rb

#to_procProc

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Converts this encoder into a Proc.

Returns:

  • (Proc)

    a closure that wraps the #call method

See Also:



16
17
18
# File 'lib/webmachine/streaming/callable_encoder.rb', line 16

def to_proc
  method(:call).to_proc
end