forked from sibblingz/swf_to_svg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hacked around the byte alignment. prints out labels in symbol class (…
…code 76) tag
- Loading branch information
Eric Chu
committed
Feb 13, 2010
1 parent
6e9cd84
commit 6bd92a8
Showing
10 changed files
with
747 additions
and
1,810 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class SymbolClassTag | ||
attr_accessor :num_symbols, :tag_ids, :tag_names | ||
|
||
def to_xml | ||
"<symbols num='#{num_symbols}'> | ||
#{tags_to_xml} | ||
</symbols>" | ||
end | ||
private | ||
def tags_to_xml | ||
return_val = tag_ids.each_with_index.map{ |id, i| "<symbol tag_id='#{id}' name='#{tag_names[i]}'/>" }.join("\n") | ||
end | ||
end |
Oops, something went wrong.