Sha256: cd79ae607bbe03885b81d97574f6b7e69fcd517d930c6ae4c0b18bda6879833e

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

require 'tree_html'
require 'cgi'
require 'json'

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 data_for_tree_html
      {}
    end

    def body_js_for_tree_html
      []
    end

    def children_for_tree_html
      callees
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trace_tree-0.2.11 lib/trace_tree/tree_htmlable.rb
trace_tree-0.2.10 lib/trace_tree/tree_htmlable.rb