Class: Spoom::Coverage::Cards::Map
- Defined in:
- lib/spoom/coverage/report.rb
Constant Summary
Constants inherited from Card
Instance Attribute Summary
Attributes inherited from Card
Instance Method Summary collapse
-
#initialize(file_tree:, nodes_strictnesses:, nodes_strictness_scores:, title: "Strictness Map") ⇒ Map
constructor
: ( | file_tree: FileTree, | nodes_strictnesses: Hash[FileTree::Node, String?], | nodes_strictness_scores: Hash[FileTree::Node, Float], | ?title: String | ) -> void.
Methods inherited from Template
Constructor Details
#initialize(file_tree:, nodes_strictnesses:, nodes_strictness_scores:, title: "Strictness Map") ⇒ Map
: ( | file_tree: FileTree, | nodes_strictnesses: Hash[FileTree::Node, String?], | nodes_strictness_scores: Hash[FileTree::Node, Float], | ?title: String | ) -> void
147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/spoom/coverage/report.rb', line 147 def initialize(file_tree:, nodes_strictnesses:, nodes_strictness_scores:, title: "Strictness Map") super( title: title, body: D3::CircleMap::Sigils.new( "map_sigils", file_tree, nodes_strictnesses, nodes_strictness_scores, ).html ) end |