Class: GuiDebugger::DebugPage

Inherits:
Object
  • Object
show all
Defined in:
lib/gui_debugger/debug_page.rb

Class Method Summary collapse

Class Method Details

.showObject



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.expand_path("../templates/#{template_name}.html.erb", __FILE__)
end