Class: MetricFu::FlayBluffGrapher
- Inherits:
-
FlayGrapher
- Object
- Grapher
- FlayGrapher
- MetricFu::FlayBluffGrapher
- Defined in:
- lib/graphs/engines/bluff.rb
Constant Summary
Constants inherited from Grapher
Grapher::BLUFF_DEFAULT_OPTIONS, Grapher::BLUFF_GRAPH_SIZE
Constants included from GchartGrapher
GchartGrapher::COLORS, GchartGrapher::GCHART_GRAPH_SIZE, GchartGrapher::NUMBER_OF_TICKS
Instance Attribute Summary
Attributes inherited from FlayGrapher
Attributes inherited from Grapher
Instance Method Summary collapse
Methods inherited from FlayGrapher
Methods inherited from Grapher
#get_metrics, #initialize, require_graphing_gem
Methods included from GchartGrapher
Constructor Details
This class inherits a constructor from MetricFu::FlayGrapher
Instance Method Details
#graph! ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/graphs/engines/bluff.rb', line 17 def graph! content = " \#{BLUFF_DEFAULT_OPTIONS}\n g.title = 'Flay: duplication';\n g.data('flay', [\#{@flay_score.join(',')}]);\n g.labels = \#{@labels.to_json};\n g.draw();\n EOS\n File.open(File.join(MetricFu.output_directory, 'flay.js'), 'w') {|f| f << content }\nend\n" |