1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (arg_ambiguous): hopefully better message.

* lib/cgi.rb (CGI::QueryExtension::initialize_query): to_ary


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2003-04-22 08:18:19 +00:00
parent 808e9289e6
commit f550e69efc
4 changed files with 22 additions and 18 deletions

View file

@ -67,7 +67,9 @@ class Rational < Numeric
def Rational.new!(num, den = 1)
new(num, den)
end
private_class_method :new
def initialize(num, den)
if den < 0
num = -num