Class OSC::Bundle
In: lib/osc.rb
Parent: Object

bundle of messages and/or bundles

Methods

encode   new   to_yaml  

Included Modules

Enumerable

External Aliases

timetag -> timestamp
args -> messages
args -> contents
args -> to_a

Attributes

args  [RW] 
source  [RW] 
timetag  [RW] 

Public Class methods

New bundle with time and messages

[Source]

     # File lib/osc.rb, line 172
172:     def initialize(t=nil, *args)
173:       @timetag = 
174:         case t
175:         when TimeTag
176:           t
177:         else
178:           TimeTag.new(t)
179:         end
180:       @args = args
181:     end

Public Instance methods

[Source]

     # File lib/osc.rb, line 198
198:     def encode
199:       Packet.encode(self)
200:     end

[Source]

     # File lib/osc.rb, line 183
183:     def to_yaml
184:       {'timestamp'=>timetag, 'contents'=>contents}.to_yaml
185:     end

[Validate]