Class: MP4::Parser::Track
- Inherits:
-
Object
- Object
- MP4::Parser::Track
- Defined in:
- lib/mp4/parser/track.rb
Instance Attribute Summary collapse
-
#bytes ⇒ Object
readonly
Returns the value of attribute bytes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bytes) ⇒ Track
constructor
A new instance of Track.
- #parse ⇒ Object
Constructor Details
#initialize(bytes) ⇒ Track
Returns a new instance of Track.
9 10 11 |
# File 'lib/mp4/parser/track.rb', line 9 def initialize(bytes) @bytes = bytes end |
Instance Attribute Details
#bytes ⇒ Object (readonly)
Returns the value of attribute bytes.
3 4 5 |
# File 'lib/mp4/parser/track.rb', line 3 def bytes @bytes end |
Class Method Details
.parse(bytes) ⇒ Object
5 6 7 |
# File 'lib/mp4/parser/track.rb', line 5 def self.parse(bytes) new(bytes).parse end |
Instance Method Details
#parse ⇒ Object
13 14 15 |
# File 'lib/mp4/parser/track.rb', line 13 def parse parse_recursive end |