Module: Faye::RackStream::Reader

Defined in:
lib/faye/rack_stream.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#streamObject

Returns the value of attribute stream.



7
8
9
# File 'lib/faye/rack_stream.rb', line 7

def stream
  @stream
end

Instance Method Details

#receive_data(data) ⇒ Object



9
10
11
# File 'lib/faye/rack_stream.rb', line 9

def receive_data(data)
  stream.receive(data)
end

#unbindObject



13
14
15
# File 'lib/faye/rack_stream.rb', line 13

def unbind
  stream.fail
end