Sha256: 5e9be06adc6d160241b8425b5aa22fb327567acd27e2ad5dc21eb8f4508e5791

Contents?: true

Size: 377 Bytes

Versions: 10

Compression:

Stored size: 377 Bytes

Contents

require 'tree_html'
require 'cgi'

class TraceTree
  module TreeHtmlable

    include TreeHtml

    def label_for_tree_html
      "<span class='highlight'>#{CGI::escapeHTML class_and_method}</span> #{CGI::escapeHTML source_location}"
    end

    def children_for_tree_html
      callees
    end

    def css_for_tree_html
      '.highlight{color: #a50000;}'
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
trace_tree-0.2.9 lib/trace_tree/tree_htmlable.rb
trace_tree-0.2.8 lib/trace_tree/tree_htmlable.rb
trace_tree-0.2.7 lib/trace_tree/tree_htmlable.rb
trace_tree-0.2.3 lib/trace_tree/tree_htmlable.rb
trace_tree-0.2.2 lib/trace_tree/tree_htmlable.rb
trace_tree-0.2.1 lib/trace_tree/tree_htmlable.rb
trace_tree-0.1.5 lib/trace_tree/tree_htmlable.rb
trace_tree-0.1.4 lib/trace_tree/tree_htmlable.rb
trace_tree-0.1.3 lib/trace_tree/tree_htmlable.rb
trace_tree-0.1.2 lib/trace_tree/tree_htmlable.rb