mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/cgi.rb (CGI::QueryExtension::[]): always return Value
object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c6c5771e50
commit
1de4203c51
4 changed files with 13 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Apr 23 13:31:10 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/cgi.rb (CGI::QueryExtension::[]): always return Value
|
||||||
|
object.
|
||||||
|
|
||||||
Wed Apr 23 08:39:27 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
Wed Apr 23 08:39:27 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
* ext/zlib/extconf.rb: bccwin32 is win32 too.
|
* ext/zlib/extconf.rb: bccwin32 is win32 too.
|
||||||
|
@ -5,7 +10,7 @@ Wed Apr 23 08:39:27 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
Tue Apr 22 20:58:00 2003 Takaaki Uematsu <uema2x@jcom.home.ne.jp>
|
Tue Apr 22 20:58:00 2003 Takaaki Uematsu <uema2x@jcom.home.ne.jp>
|
||||||
|
|
||||||
* ruby.c: don't call VirtualQuery in ruby_init_loadpath()
|
* ruby.c: don't call VirtualQuery in ruby_init_loadpath()
|
||||||
on mswince.
|
on mswince.
|
||||||
|
|
||||||
Tue Apr 22 19:08:53 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
Tue Apr 22 19:08:53 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
|
@ -17,6 +22,7 @@ Tue Apr 22 09:20:40 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
* parse.y (arg_ambiguous): hopefully better message.
|
* parse.y (arg_ambiguous): hopefully better message.
|
||||||
|
|
||||||
* lib/cgi.rb (CGI::QueryExtension::initialize_query): to_ary
|
* lib/cgi.rb (CGI::QueryExtension::initialize_query): to_ary
|
||||||
|
removed.
|
||||||
|
|
||||||
Tue Apr 22 06:06:22 2003 Tanaka Akira <akr@m17n.org>
|
Tue Apr 22 06:06:22 2003 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
|
|
|
@ -957,7 +957,9 @@ END
|
||||||
end
|
end
|
||||||
|
|
||||||
def [](key)
|
def [](key)
|
||||||
Value.new(@params[key][0])
|
value = @params[key][0]
|
||||||
|
value ||= ""
|
||||||
|
Value.new(value)
|
||||||
end
|
end
|
||||||
|
|
||||||
def keys(*args)
|
def keys(*args)
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
#
|
#
|
||||||
# Complex numbers can be created in the following manner:
|
# Complex numbers can be created in the following manner:
|
||||||
# - <tt>Complex(a, b)</tt>
|
# - <tt>Complex(a, b)</tt>
|
||||||
# - <tt>Complex.new(a, b)</tt>
|
|
||||||
# - <tt>Complex.polar(radius, theta)</tt>
|
# - <tt>Complex.polar(radius, theta)</tt>
|
||||||
#
|
#
|
||||||
# Additionally, note the following:
|
# Additionally, note the following:
|
||||||
|
@ -66,7 +65,8 @@ class Complex < Numeric
|
||||||
def Complex.polar(r, theta)
|
def Complex.polar(r, theta)
|
||||||
Complex(r*Math.cos(theta), r*Math.sin(theta))
|
Complex(r*Math.cos(theta), r*Math.sin(theta))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
private_class_method :new
|
||||||
#
|
#
|
||||||
# Creates a +Complex+ number <tt>a</tt>+<tt>b</tt><i>i</i>.
|
# Creates a +Complex+ number <tt>a</tt>+<tt>b</tt><i>i</i>.
|
||||||
#
|
#
|
||||||
|
|
|
@ -142,7 +142,7 @@ module Singleton
|
||||||
@__instance__ = new
|
@__instance__ = new
|
||||||
ensure
|
ensure
|
||||||
if @__instance__
|
if @__instance__
|
||||||
def self.instance() @__instance__ end
|
define_method(:instance) {@__instance__}
|
||||||
else
|
else
|
||||||
@__instance__ = nil # failed instance creation
|
@__instance__ = nil # failed instance creation
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue