Module: Rack::Stream::DSL::ClassMethods

Defined in:
lib/rack/stream/dsl.rb

Instance Method Summary collapse

Instance Method Details

#stream(&blk) ⇒ Object

Declare your rack endpoint with &blk



78
79
80
# File 'lib/rack/stream/dsl.rb', line 78

def stream(&blk)
  @_rack_stream_proc = blk
end