Class: Spoom::Coverage::D3::Timeline::Sigils
- Inherits:
-
Stacked
- Object
- Base
- Spoom::Coverage::D3::Timeline
- Stacked
- Spoom::Coverage::D3::Timeline::Sigils
- Defined in:
- lib/spoom/coverage/d3/timeline.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(id, snapshots) ⇒ Sigils
constructor
: (String id, Array snapshots) -> void.
-
#tooltip ⇒ Object
: -> String.
Methods inherited from Stacked
Methods inherited from Spoom::Coverage::D3::Timeline
#area, header_script, header_style, #line, #plot, #points, #script, #x_scale, #x_ticks, #y_scale, #y_ticks
Methods inherited from Base
header_script, header_style, #html, #script
Constructor Details
#initialize(id, snapshots) ⇒ Sigils
: (String id, Array snapshots) -> void
418 419 420 421 422 423 424 425 426 427 428 429 |
# File 'lib/spoom/coverage/d3/timeline.rb', line 418 def initialize(id, snapshots) keys = Snapshot::STRICTNESSES data = snapshots.map do |snapshot| { timestamp: snapshot., commit: snapshot.commit_sha, total: snapshot.files - snapshot.rbi_files, values: snapshot.sigils_excluding_rbis, } end super(id, data, keys) end |
Instance Method Details
#tooltip ⇒ Object
: -> String
433 434 435 436 437 438 439 |
# File 'lib/spoom/coverage/d3/timeline.rb', line 433 def tooltip " function tooltip_\#{id}(d) {\n tooltipTimeline(d, \"files excluding RBIs\");\n }\n JS\nend\n" |