class Spoom::Coverage::D3::Pie::Sigs

Public Class Methods

new(id, title, snapshot) click to toggle source
Calls superclass method Spoom::Coverage::D3::Pie::new
# File lib/spoom/coverage/d3/pie.rb, line 159
def initialize(id, title, snapshot)
  super(id, title, { true: snapshot.methods_with_sig, false: snapshot.methods_without_sig })
end

Public Instance Methods

tooltip() click to toggle source
# File lib/spoom/coverage/d3/pie.rb, line 164
          def tooltip
            <<~JS
              function tooltip_#{id}(d) {
                tooltipPie(d, (d.data.key == "true" ? " with" : " without") + " a signature", "methods", sum_#{id})
              }
            JS
          end