Sha256: 858787d53962c58f75f347e25f5c84df6dffd3b8385b453788188d81ef63d041
Contents?: true
Size: 293 Bytes
Versions: 9
Compression:
Stored size: 293 Bytes
Contents
module WebConsole class View < Window require 'erb' def load_erb_from_path(path) erb = File.new(path).read load_erb(erb) end def load_erb(erb) template = ERB.new(erb, nil, '-') html = template.result(binding) load_html(html) end end end
Version data entries
9 entries across 9 versions & 1 rubygems