Class: Interscript::Visualize::Map
- Inherits:
-
Interscript::Visualize
- Object
- Interscript::Visualize
- Interscript::Visualize::Map
- Defined in:
- lib/interscript/visualize.rb
Instance Attribute Summary collapse
-
#map ⇒ Object
readonly
Returns the value of attribute map.
Instance Method Summary collapse
-
#initialize(map_name) ⇒ Map
constructor
A new instance of Map.
- #render_stage(map_name, stage) ⇒ Object
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
#map ⇒ Object (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 |