Class: BMFF::Box::Map

Inherits:
Object
  • Object
show all
Defined in:
lib/bmff/box/map.rb

Overview

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

Class Method Summary collapse

Class Method Details

.get_box_class(type) ⇒ Object



11
12
13
# File 'lib/bmff/box/map.rb', line 11

def get_box_class(type)
  return @@map[type]
end

.register_box(type, klass) ⇒ Object



6
7
8
9
# File 'lib/bmff/box/map.rb', line 6

def register_box(type, klass)
  @@map ||= {}
  @@map[type] = klass
end