Class: BMFF::Box::Copyright

Inherits:
Full show all
Defined in:
lib/bmff/box/copyright.rb

Overview

vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:

Instance Attribute Summary collapse

Attributes inherited from Full

#flags, #version

Attributes inherited from Base

#io, #largesize, #offset, #parent, #size, #type, #usertype

Instance Method Summary collapse

Methods inherited from Base

#actual_size, #container?, #eob?, #parse, register_box, register_uuid_box, #remaining_size, #root, #seek_to_end

Instance Attribute Details

#languageObject

Returns the value of attribute language.



5
6
7
# File 'lib/bmff/box/copyright.rb', line 5

def language
  @language
end

#noticeObject

Returns the value of attribute notice.



5
6
7
# File 'lib/bmff/box/copyright.rb', line 5

def notice
  @notice
end

Instance Method Details

#parse_dataObject



8
9
10
11
12
# File 'lib/bmff/box/copyright.rb', line 8

def parse_data
  super
  @language = io.get_iso639_2_language
  @notice = io.get_null_terminated_string unless eob?
end