Class: Spoom::Coverage::D3::Pie::Sigs
- Inherits:
-
Spoom::Coverage::D3::Pie
- Object
- Base
- Spoom::Coverage::D3::Pie
- Spoom::Coverage::D3::Pie::Sigs
- Extended by:
- T::Sig
- Defined in:
- lib/spoom/coverage/d3/pie.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(id, title, snapshot) ⇒ Sigs
constructor
A new instance of Sigs.
- #tooltip ⇒ Object
Methods inherited from Spoom::Coverage::D3::Pie
header_script, header_style, #script
Methods inherited from Base
header_script, header_style, #html, #script
Constructor Details
#initialize(id, title, snapshot) ⇒ Sigs
Returns a new instance of Sigs.
163 164 165 166 167 168 169 |
# File 'lib/spoom/coverage/d3/pie.rb', line 163 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
172 173 174 175 176 177 178 179 180 181 |
# File 'lib/spoom/coverage/d3/pie.rb', line 172 def tooltip " function tooltip_\#{id}(d) {\n tooltipPie(\n d,\n (d.data.key == \"true\" ? \" with\" : \" without\") + \" a signature\", \"methods excluding RBIs\", sum_\#{id}\n )\n }\n JS\nend\n" |