summaryrefslogtreecommitdiff
path: root/lib/mathn.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mathn.rb')
-rw-r--r--lib/mathn.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mathn.rb b/lib/mathn.rb
index 8d92272159..f3f7a95a48 100644
--- a/lib/mathn.rb
+++ b/lib/mathn.rb
@@ -122,7 +122,11 @@ end
class Rational
Unify = true
-
+
+ def inspect
+ format "%s/%s", @numerator.inspect, @denominator.inspect
+ end
+
alias power! **
def ** (other)