Module: Tmx::Parsers
Overview
This module defines the parsers for the formats of various TMX output formats.
Instance Method Summary collapse
- #default=(parser) ⇒ Object
- #format(format) ⇒ Object
- #parsers ⇒ Object
- #register(format, parser) ⇒ Object
Instance Method Details
#default=(parser) ⇒ Object
22 23 24 |
# File 'lib/tmx/parsers/parsers.rb', line 22 def default=(parser) parsers.default = parser end |
#format(format) ⇒ Object
10 11 12 |
# File 'lib/tmx/parsers/parsers.rb', line 10 def format(format) parsers[format] end |
#parsers ⇒ Object
14 15 16 |
# File 'lib/tmx/parsers/parsers.rb', line 14 def parsers @parsers ||= {} end |
#register(format, parser) ⇒ Object
18 19 20 |
# File 'lib/tmx/parsers/parsers.rb', line 18 def register(format,parser) parsers[format] = parser end |