class BMFF::Box::Map
vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:
Public Class Methods
get_box_class(type)
click to toggle source
# File lib/bmff/box/map.rb, line 13 def get_box_class(type) @@map[type] end
get_uuid_box_class(uuid)
click to toggle source
# File lib/bmff/box/map.rb, line 21 def get_uuid_box_class(uuid) @@uuid_map[uuid.to_s] end
register_box(type, klass)
click to toggle source
# File lib/bmff/box/map.rb, line 9 def register_box(type, klass) @@map[type] = klass end
register_uuid_box(uuid, klass)
click to toggle source
# File lib/bmff/box/map.rb, line 17 def register_uuid_box(uuid, klass) @@uuid_map[UUIDTools::UUID.parse(uuid).to_s] = klass end