Class: Spoom::Coverage::D3::Pie::Sigs
- Inherits:
-
Pie
- Object
- Pie
- Spoom::Coverage::D3::Pie::Sigs
- Defined in:
- lib/spoom/coverage/d3/pie.rb
Instance Method Summary collapse
-
#initialize(id, title, snapshot) ⇒ Sigs
constructor
A new instance of Sigs.
- #tooltip ⇒ Object
Constructor Details
#initialize(id, title, snapshot) ⇒ Sigs
Returns a new instance of Sigs.
154 155 156 157 158 159 160 |
# File 'lib/spoom/coverage/d3/pie.rb', line 154 def initialize(id, title, snapshot) super( id, title, { true: snapshot.methods_with_sig_excluding_rbis, false: snapshot.methods_without_sig_excluding_rbis } ) end |
Instance Method Details
#tooltip ⇒ Object
164 165 166 167 168 169 170 171 172 173 |
# 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 excluding RBIs", sum_#{id} ) } JS end |