Class: GuiDebugger::DebugPage
- Inherits:
-
Object
- Object
- GuiDebugger::DebugPage
- Defined in:
- lib/gui_debugger/debug_page.rb
Class Method Summary collapse
Class Method Details
.show ⇒ Object
9 10 11 12 |
# File 'lib/gui_debugger/debug_page.rb', line 9 def self.show text = File.read(template("main")) Erubis::Eruby.new(text).evaluate(context: GuiDebugger.debug_context) end |
.template(template_name) ⇒ Object
5 6 7 |
# File 'lib/gui_debugger/debug_page.rb', line 5 def self.template(template_name) File.("../templates/#{template_name}.html.erb", __FILE__) end |