Class: TSparser::ContentDescriptor::ContentList
- Inherits:
-
Object
- Object
- TSparser::ContentDescriptor::ContentList
- Defined in:
- lib/definition/descriptor/content_descriptor.rb
Defined Under Namespace
Classes: Content
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(binary) ⇒ ContentList
constructor
A new instance of ContentList.
Constructor Details
#initialize(binary) ⇒ ContentList
Returns a new instance of ContentList.
14 15 16 17 18 19 |
# File 'lib/definition/descriptor/content_descriptor.rb', line 14 def initialize(binary) @contents = [] while binary.readable? @contents << Content.new(binary) end end |
Instance Method Details
#each(&block) ⇒ Object
21 22 23 |
# File 'lib/definition/descriptor/content_descriptor.rb', line 21 def each(&block) @contents.each(&block) end |