class Object
Public Instance Methods
max(*values)
click to toggle source
Return max of a series of values
# File lib/face.rb, line 90 def max(*values) values.max end
min(*values)
click to toggle source
Return min of a series of values
# File lib/face.rb, line 85 def min(*values) values.min end
min_max_to_i(min, max)
click to toggle source
Convert min axis, max axis tuple to an orientation index where axis is between 1 and 4 and min_axis < max_axis
# File lib/tiler.rb, line 11 def min_max_to_i min, max return max - 1 if min == 0 return 1 + max if min == 1 return 5 end