summaryrefslogtreecommitdiff
path: root/lib/rational.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-02 06:41:33 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-02 06:41:33 +0000
commit776e2693e738975b2bdbeb1ec43e4993a5520665 (patch)
tree7cfe6e46681a24e91c1cfa1d81a017eff06fcb1c /lib/rational.rb
parentf701792f6f5d21a3762aec4a23a2b134e52ab94e (diff)
* string.c (rb_str_ljust): now takes optional argument to specify
pad string. [ruby-talk:70482] * string.c (rb_str_rjust): ditto. * string.c (rb_str_center): ditto. * string.c (rb_str_justify): utility function. * eval.c (rb_add_method): call singleton_method_added or method_added for every method definition (after ruby_running). [ruby-talk:70471] * array.c (rb_ary_reverse_bang): Array#reverse! should not return nil even for arrays sized less than 2. * io.c (argf_eof): should not block after reading all argument files. (ruby-bugs-ja PR#449) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rational.rb')
-rw-r--r--lib/rational.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rational.rb b/lib/rational.rb
index 0c784fb..a0f0b06 100644
--- a/lib/rational.rb
+++ b/lib/rational.rb
@@ -329,7 +329,7 @@ class Integer
end
class Fixnum
- if not defined? Complex
+ unless defined? Complex
alias power! **;
end
@@ -347,13 +347,13 @@ class Fixnum
end
end
- if not defined? Complex
+ unless defined? Complex
alias ** rpower
end
end
class Bignum
- if not defined? power!
+ unless defined? Complex
alias power! **
end
@@ -371,7 +371,7 @@ class Bignum
end
end
- if not defined? Complex
+ unless defined? Complex
alias ** rpower
end
end