Module: Mongrel2::WebSocket::FrameMethods

Extended by:
Forwardable
Included in:
Request, Response
Defined in:
lib/mongrel2/websocket.rb

Overview

A mixin containing methods for request/response classes that wrap a Frame.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#frameObject (readonly)

Delegate some methods to the contained frame



221
222
223
# File 'lib/mongrel2/websocket.rb', line 221

def frame
  @frame
end

Instance Method Details

#<<(object) ⇒ Object

Append operator – append object to the contained frame’s payload and return the receiver.



232
233
234
235
# File 'lib/mongrel2/websocket.rb', line 232

def <<( object )
	self.frame << object
	return self
end

#inspect_detailsObject

Return the details to include in the contents of the #inspected object.



239
240
241
# File 'lib/mongrel2/websocket.rb', line 239

def inspect_details
	return "frame: %p" % [ self.frame ]
end