Class: Interscript::Visualize
- Inherits:
-
Object
- Object
- Interscript::Visualize
show all
- Defined in:
- lib/interscript/visualize.rb
Defined Under Namespace
Classes: Group, Map, Stage
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.call(*args) ⇒ Object
15
16
17
18
19
20
|
# File 'lib/interscript/visualize.rb', line 15
def self.call(*args)
return Map.(*args) if self == Interscript::Visualize
tplctx = self.new(*args)
@template.result(tplctx.get_binding)
end
|
.def_template(template) ⇒ Object
10
11
12
|
# File 'lib/interscript/visualize.rb', line 10
def self.def_template(template)
@template = ERB.new(File.read(__dir__+"/visualize/#{template}.html.erb"))
end
|
Instance Method Details
#get_binding ⇒ Object
13
|
# File 'lib/interscript/visualize.rb', line 13
def get_binding; binding; end
|