add ** and %

master
muflax 2012-04-30 00:15:09 +02:00
parent ba1f211b2c
commit 1327bdac58
1 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,14 @@ class Range
pair_or_num :/, other.to_f
end
def **(other)
pair_or_num :**, other
end
def %(other)
pair_or_num :%, other
end
def to_f
(self.begin.to_f..self.end.to_f)
end