class TSparser::ContentDescriptor::ContentList
Public Class Methods
new(binary)
click to toggle source
# File lib/definition/descriptor/content_descriptor.rb, line 13 def initialize(binary) @contents = [] while binary.readable? @contents << Content.new(binary) end end
Public Instance Methods
each(&block)
click to toggle source
# File lib/definition/descriptor/content_descriptor.rb, line 20 def each(&block) @contents.each(&block) end