X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/dc635b6d39be19a09a428282b6d639d029908df6..22f84a3ea8bc39eb4cb91575d35dfca683336032:/vendor/plugins/gruff/lib/gruff/deprecated.rb diff --git a/vendor/plugins/gruff/lib/gruff/deprecated.rb b/vendor/plugins/gruff/lib/gruff/deprecated.rb new file mode 100644 index 0000000..be254b5 --- /dev/null +++ b/vendor/plugins/gruff/lib/gruff/deprecated.rb @@ -0,0 +1,39 @@ + +## +# A mixin for methods that need to be deleted or have been +# replaced by cleaner code. + +module Gruff + module Deprecated + + def scale_measurements + setup_graph_measurements + end + + def total_height + @rows + 10 + end + + def graph_top + @graph_top * @scale + end + + def graph_height + @graph_height * @scale + end + + def graph_left + @graph_left * @scale + end + + def graph_width + @graph_width * @scale + end + + # TODO Should be calculate_graph_height + # def setup_graph_height + # @graph_height = @graph_bottom - @graph_top + # end + + end +end