Class: Furnace::SWF::Tag
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- Furnace::SWF::Tag
show all
- Defined in:
- lib/furnace-swf/swf/tag.rb
Constant Summary
collapse
- REGISTRY =
{}
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.exists_for?(type) ⇒ Boolean
9
10
11
|
# File 'lib/furnace-swf/swf/tag.rb', line 9
def self.exists_for?(type)
REGISTRY.has_key? type
end
|
.instantiate(type, parent, stream) ⇒ Object
13
14
15
|
# File 'lib/furnace-swf/swf/tag.rb', line 13
def self.instantiate(type, parent, stream)
REGISTRY[type].new({ stream: stream }, parent)
end
|
.type(id) ⇒ Object
20
21
22
23
24
25
26
|
# File 'lib/furnace-swf/swf/tag.rb', line 20
def type(id)
Tag::REGISTRY[id] = self
define_method(:type) do
id
end
end
|
Instance Method Details
#initialize_instance ⇒ Object
29
30
31
32
|
# File 'lib/furnace-swf/swf/tag.rb', line 29
def initialize_instance
super
@stream = @params[:stream]
end
|