Class: Spoom::Coverage::D3::Pie::Sigils
- Inherits:
-
Pie
- Object
- Pie
- Spoom::Coverage::D3::Pie::Sigils
- Defined in:
- lib/spoom/coverage/d3/pie.rb
Instance Method Summary collapse
-
#initialize(id, title, snapshot) ⇒ Sigils
constructor
A new instance of Sigils.
- #tooltip ⇒ Object
Constructor Details
#initialize(id, title, snapshot) ⇒ Sigils
Returns a new instance of Sigils.
120 121 122 |
# File 'lib/spoom/coverage/d3/pie.rb', line 120 def initialize(id, title, snapshot) super(id, title, snapshot.sigils_excluding_rbis.select { |_k, v| v }) end |
Instance Method Details
#tooltip ⇒ Object
126 127 128 129 130 131 132 |
# File 'lib/spoom/coverage/d3/pie.rb', line 126 def tooltip <<~JS function tooltip_#{id}(d) { tooltipPie(d, "typed: " + d.data.key, "files excluding RBIs", sum_#{id}); } JS end |