1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 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
|