Sha256: 5ce5672e8d96462ea7785b9565e1669e63c0a2d61cbd0fc9d4029d307a37896a

Contents?: true

Size: 210 Bytes

Versions: 33

Compression:

Stored size: 210 Bytes

Contents

class TraceTree
  module Color
    def label_for_tree_graph
      "#{highlight class_and_method} #{source_location}"
    end

    private

    def highlight str
      "\e[1m\e[32m#{str}\e[0m"
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
trace_tree-0.2.10 lib/trace_tree/color.rb
trace_tree-0.2.9 lib/trace_tree/color.rb
trace_tree-0.2.8 lib/trace_tree/color.rb
trace_tree-0.2.7 lib/trace_tree/color.rb
trace_tree-0.2.3 lib/trace_tree/color.rb
trace_tree-0.2.2 lib/trace_tree/color.rb
trace_tree-0.2.1 lib/trace_tree/color.rb
trace_tree-0.1.5 lib/trace_tree/color.rb
trace_tree-0.1.4 lib/trace_tree/color.rb
trace_tree-0.1.3 lib/trace_tree/color.rb
trace_tree-0.1.2 lib/trace_tree/color.rb
trace_tree-0.1.1 lib/trace_tree/color.rb
trace_tree-0.1.0 lib/trace_tree/color.rb