Module: Tmx
- Extended by:
- Tmx
- Included in:
- Tmx
- Defined in:
- lib/tmx.rb,
lib/tmx/map.rb,
lib/tmx/layer.rb,
lib/tmx/object.rb,
lib/tmx/objects.rb,
lib/tmx/version.rb,
lib/tmx/tile_set.rb,
lib/tmx/image_layer.rb,
lib/tmx/parsers/tmx.rb,
lib/tmx/object_group.rb,
lib/tmx/parsers/json.rb,
lib/tmx/parsers/parsers.rb,
lib/tmx/parsers/unknown.rb
Defined Under Namespace
Modules: Parser, Parsers Classes: ImageLayer, Layer, Map, Object, ObjectGroup, Objects, TileSet
Constant Summary collapse
- VERSION =
"0.1.5"
Instance Method Summary collapse
-
#load(filename, options = {}) ⇒ Object
Load the specified TMX file and return a Map that was found.
-
#parse(contents, options = {}) ⇒ Object
Parse the the string contents of a TMX file.
Instance Method Details
#load(filename, options = {}) ⇒ Object
Load the specified TMX file and return a Map that was found.
18 19 20 21 22 23 |
# File 'lib/tmx.rb', line 18 def load(filename,={}) = (filename).merge() # Pass :filename in options for resolving relative "source" paths parse contents(filename), .merge(:filename => filename) end |