Class: Interscript::Visualize::Map

Inherits:
Interscript::Visualize show all
Defined in:
lib/interscript/visualize.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Interscript::Visualize

call, def_template, #get_binding

Constructor Details

#initialize(map_name) ⇒ Map

Returns a new instance of Map.



25
26
27
# File 'lib/interscript/visualize.rb', line 25

def initialize(map_name)
  @map = Interscript.parse(map_name)
end

Instance Attribute Details

#mapObject (readonly)

Returns the value of attribute map.



29
30
31
# File 'lib/interscript/visualize.rb', line 29

def map
  @map
end

Instance Method Details

#render_stage(map_name, stage) ⇒ Object



31
32
33
# File 'lib/interscript/visualize.rb', line 31

def render_stage(map_name, stage)
  Stage.(map_name, stage)
end