use private methods

This commit is contained in:
muflax 2013-07-28 17:16:14 +02:00
parent e6c7f81d9a
commit f9f8c9a1a4

View file

@ -50,6 +50,8 @@ class Range
end
end
private
def pair_or_num operator, other
if other.is_a? Range
calc_pairs operator, other