Module: Mongrel2::WebSocket::FrameMethods
Overview
A mixin containing methods for request/response classes that wrap a Frame.
Instance Attribute Summary collapse
-
#frame ⇒ Object
readonly
Delegate some methods to the contained frame.
Instance Method Summary collapse
-
#<<(object) ⇒ Object
Append operator – append
object
to the contained frame’s payload and return the receiver. -
#inspect_details ⇒ Object
Return the details to include in the contents of the #inspected object.
Instance Attribute Details
#frame ⇒ Object (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_details ⇒ Object
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 |