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.3.6 lib/trace_tree/color.rb
trace_tree-0.3.5 lib/trace_tree/color.rb
trace_tree-0.3.4 lib/trace_tree/color.rb
trace_tree-0.3.3 lib/trace_tree/color.rb
trace_tree-0.3.2 lib/trace_tree/color.rb
trace_tree-0.3.1 lib/trace_tree/color.rb
trace_tree-0.3.0 lib/trace_tree/color.rb
trace_tree-0.2.23 lib/trace_tree/color.rb
trace_tree-0.2.22 lib/trace_tree/color.rb
trace_tree-0.2.21 lib/trace_tree/color.rb
trace_tree-0.2.20 lib/trace_tree/color.rb
trace_tree-0.2.19 lib/trace_tree/color.rb
trace_tree-0.2.18 lib/trace_tree/color.rb
trace_tree-0.2.17 lib/trace_tree/color.rb
trace_tree-0.2.16 lib/trace_tree/color.rb
trace_tree-0.2.15 lib/trace_tree/color.rb
trace_tree-0.2.14 lib/trace_tree/color.rb
trace_tree-0.2.13 lib/trace_tree/color.rb
trace_tree-0.2.12 lib/trace_tree/color.rb
trace_tree-0.2.11 lib/trace_tree/color.rb