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

def initialize(id, title, snapshot)

def initialize(id, title, snapshot)
  super(
    id,
    title,
    { true: snapshot.methods_with_sig_excluding_rbis, false: snapshot.methods_without_sig_excluding_rbis }
  )
end

def tooltip

def tooltip
  <<~JS
    function tooltip_#{id}(d) {
      tooltipPie(
        d,
        (d.data.key == "true" ? " with" : " without") + " a signature", "methods excluding RBIs", sum_#{id}
      )
    }
  JS
end