Sha256: 68389a70c2388517805b283a7de342a6fd8405ffcb93b307fc91f2a4dca0ec48

Contents?: true

Size: 423 Bytes

Versions: 2

Compression:

Stored size: 423 Bytes

Contents

module OSC
  class Message
    def has_arguments?
      to_a.size > 0
    end

    # attachable responder, for use with TCP::Server
    def responder
      @responder
    end

    def responder=(val)
      @responder = val
    end

    def debug
      types = to_a.map(&:class).map(&:to_s).join(', ')
      args  = to_a

      "#{ip_address}:#{ip_port} -- #{address} -- [#{ types }] -- #{ args.inspect }"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qcmd-0.2.0 lib/qcmd/core_ext/osc/message.rb
qcmd-0.1.16 lib/qcmd/core_ext/osc/message.rb