Class: Uttk::Dumpers::Html
- Inherits:
-
Dumper
- Object
- Logger::Backend
- Dumper
- Uttk::Dumpers::Html
- Includes:
- Concrete
- Defined in:
- lib/uttk/dumpers/Html.rb
Overview
Use me at least with the Compact filter:
Compact: [NodeCut: [!skip ^contents$, [Html: [log.html]]]]
Defined Under Namespace
Classes: BaseNode, Leaf, Node, XmlMarkup
Constant Summary collapse
- @@base_url =
'http://api.uttk.org/'
Instance Attribute Summary
Attributes inherited from Dumper
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*a, &b) ⇒ Html
constructor
A new instance of Html.
Methods inherited from Dumper
#<<, #each_output, #flush, #print, #puts
Methods inherited from Logger::Backend
Constructor Details
#initialize(*a, &b) ⇒ Html
Returns a new instance of Html.
142 143 144 145 146 147 |
# File 'lib/uttk/dumpers/Html.rb', line 142 def initialize ( *a, &b ) @uttk_js = base_url + 'javascripts/uttk.js' @uttk_css = base_url + 'stylesheets/uttk.css' super reset end |
Class Method Details
.clean_js_str(str) ⇒ Object
260 261 262 263 264 |
# File 'lib/uttk/dumpers/Html.rb', line 260 def self.clean_js_str ( str ) res = str.to_s.html_encode.dump res.gsub!(/([^\\])\\n/, '\1<BR>\n') res end |