fix security issue
[selectricity] / lib / gruff-0.2.8 / lib / gruff / deprecated.rb
1
2 ##
3 # A mixin for methods that need to be deleted or have been
4 # replaced by cleaner code.
5
6 module Gruff
7   module Deprecated
8   
9     def scale_measurements
10       setup_graph_measurements
11     end
12     
13     def total_height
14       @rows + 10
15     end
16     
17     def graph_top
18       @graph_top * @scale
19     end
20     
21     def graph_height
22       @graph_height * @scale
23     end
24     
25     def graph_left 
26       @graph_left * @scale 
27     end
28     
29     def graph_width
30       @graph_width * @scale
31     end
32     
33     # TODO Should be calculate_graph_height
34     # def setup_graph_height
35     #   @graph_height = @graph_bottom - @graph_top
36     # end
37   
38   end
39 end

Benjamin Mako Hill || Want to submit a patch?