Sha256: 585db45d23969a8271ef3d670fdee0f319e61cdb237181abec2c63d90a8f8e6a

Contents?: true

Size: 312 Bytes

Versions: 6

Compression:

Stored size: 312 Bytes

Contents

module Stomp

  # Container class for frames, misnamed technically
  class Message
    attr_accessor :headers, :body, :command

    def initialize
      yield(self) if block_given?
    end

    def to_s
      "<Stomp::Message headers=#{headers.inspect} body='#{body}' command='#{command}' >"
    end
  end

end

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
grempe-stomp-1.0.6 lib/stomp/message.rb
zmalltalker-stomp-1.0.6 lib/stomp/message.rb
zmalltalker-stomp-1.1 lib/stomp/message.rb
onyx-stomp-1.1 lib/stomp/message.rb
stomp-1.1.3 lib/stomp/message.rb
stomp-1.1 lib/stomp/message.rb