種類
- 文書 (51)
- モジュール関数 (48)
- インスタンスメソッド (36)
- ライブラリ (24)
モジュール
-
CGI
:: QueryExtension (36) -
ERB
:: Util (48)
キーワード
-
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - h (12)
-
has
_ key? (12) -
html
_ escape (12) - include? (12)
- key? (12)
- rdoc (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) - u (12)
-
url
_ encode (12)
検索結果
先頭5件
-
cgi (38574.0)
-
CGI プログラムの支援ライブラリです。
...CGI プログラムの支援ライブラリです。
CGI プロトコルの詳細については以下の文書を参照してください。
* https://tools.ietf.org/html/draft-coar-cgi-v11-03
* 3875: The Common Gateway Interface (CGI) Version 1.1
* https://www.w3.org/CGI/
=== 使用例
=......{
require "cgi"
cgi = CGI.new
values = cgi['field_name'] # <== 'field_name' の配列
# 'field_name' が指定されていなかったら、 ""を返す。
fields = cgi.keys # <== field nameの配列
# フォームに 'field_name' というfield nameがあるときに真
cgi.has_key?('......field_name')
cgi.include?('field_name')
//}
==== フォームフィールドの値をハッシュとして得る
フォームの値をハッシュとして得るには CGI#params を使います。
//emlist[例][ruby]{
require "cgi"
cgi = CGI.new
params = cgi.params
//}
また CGI#params は毎... -
CGI
:: QueryExtension # include?(*args) -> bool (6101.0) -
与えられたキーがクエリに含まれている場合は、真を返します。 そうでない場合は、偽を返します。
与えられたキーがクエリに含まれている場合は、真を返します。
そうでない場合は、偽を返します。
@param args キーを一つ以上指定します。 -
CGI
:: QueryExtension # has _ key?(*args) -> bool (3001.0) -
与えられたキーがクエリに含まれている場合は、真を返します。 そうでない場合は、偽を返します。
与えられたキーがクエリに含まれている場合は、真を返します。
そうでない場合は、偽を返します。
@param args キーを一つ以上指定します。 -
CGI
:: QueryExtension # key?(*args) -> bool (3001.0) -
与えられたキーがクエリに含まれている場合は、真を返します。 そうでない場合は、偽を返します。
与えられたキーがクエリに含まれている場合は、真を返します。
そうでない場合は、偽を返します。
@param args キーを一つ以上指定します。 -
ruby 1
. 6 feature (96.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...IO#write
ソケットやパイプに対する EPIPE の検出に失敗することがありました。
((<ruby-dev:16849>))
: 2002-04-11: ((<"cgi/session">)) (*ドキュメント未反映*)
support for multipart form.
: 2002-04-10: Object#((<Object/remove_instance_variable>))
指定......18>)), ((<ruby-dev:15684>)),
((<ruby-dev:15757>))
: ((<Module/include>))
モジュールが再帰的に include されないようになりました。
module Foo; end
module Bar; include Foo; end
module Foo; include Bar; end
p Foo.ancestors
=> ruby 1.6.6 (2001-12-26) [i......586-linux]
[Foo, Bar, Foo]
=> -:3:in `append_features': cyclic include detected (ArgumentError)
from -:3:in `include'
from -:3
ruby 1.6.6 (2002-01-28) [i586-linux]
: メソッドの戻り値
以下のメソッドの戻り値が正しくなりました... -
rdoc (66.0)
-
RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。
...ションです。 JavaDoc と同様に、ソースを解析し、クラス、モ
ジュール、メソッドの定義を抜き出してきます(include,require もです)。そ
してこれらの内容とその直前に書かれたコメントを併合し、ドキュメントを出
力します(......ル名の末尾が .new であるものを、末尾が .old であるものとして取
り扱います。例えば '--extension cgi=rb' とすれば、RDoc は ".cgi" で
終わるファイルを Ruby のソースとして取り扱います。
: --fileboxes
--diagram を指定した場合......。指
定しなかった場合は png が使われます。--diagram が必要です。
: --include dir,…
:include: 命令でファイルを探すディレクトリを指定します。 --include を
複数使ってもかまいません。これを指定しなくとも処理中のファ... -
ruby 1
. 8 . 4 feature (60.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...<ruby 1.8.4 feature/Win32API [bug]>))
* ((<ruby 1.8.4 feature/Rinda [bug]>))
* ((<ruby 1.8.4 feature/Iconv [compat]>))
* ((<ruby 1.8.4 feature/cgi [bug]>))
* ((<ruby 1.8.4 feature/DL [bug]>))
* ((<ruby 1.8.4 feature/fileutils [bug]>))
* ((<ruby 1.8.4 feature/extmk, mkmf [compat]>))
* (......ました。((<ruby-dev:27964>))
module Foo
def initialize
super
end
end
class Bar
include Foo
def initialize
Foo.instance_method(:initialize).bind(self).call
end
end
Bar.new......s().
#
# ?
#: WEBrick
#Mon Oct 31 05:37:20 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
#
# * lib/webrick/httpservlet/cgihandler.rb
# (WEBrick::HTTPServlet::CGIHandler#do_GET): the value of Set-Cookie:
# header field should be splited into each cookie. [ruby-Bugs:2199]
#
#... -
NEWS for Ruby 2
. 1 . 0 (36.0) -
NEWS for Ruby 2.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...ルであれば false を返します。
* 拡張: Module#refine はもはや実験的な機能でなくなりました
* 拡張: Module#include と Module#prepend はパブリックメソッドになりました
* Mutex
* Mutex#owned? はもはや実験的な機能ではありませ......りません。
The method activates refinements in the ancestors of the argument module to
support refinement inheritance by Module#include
=== 組み込みクラスの互換性 (機能追加とバグ修正を除く)
* Hash
* 非互換: Hash#reject は将来のバージョンで......不正なバイト列を置き換えるようになりました。
//emlist{
include_invalid_byte_string.encode("UTF-8", invalid: :replace)
//}
=== 標準添付ライブラリの更新 (優れたもののみ)
* cgi/util
* 全てのクラスメソッドをモジュールに移動しま... -
NEWS for Ruby 3
. 0 . 0 (30.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...ntext. 16786
* Module
* Module#include and Module#prepend now affect classes and modules that have already included or prepended the receiver, mirroring the behavior if the arguments were included in the receiver before the other modules and classes included or prepended the receiver. 9573......* Module#alias_method now returns the defined alias as a symbol. 17314
//emlist[][ruby]{
class C; end
module M1; end
module M2; end
C.include M1
M1.include M2
p C.ancestors #=> [C, M1, M2, Object, Kernel, BasicObject]
//}
* Mutex
* `Mutex` is now acquired per-`Fiber` instead of per-`Thr......g ones only.
* BigDecimal
* Update to BigDecimal 3.0.0
* This version is Ractor compatible.
* Bundler
* Update to Bundler 2.2.3
* CGI
* Update to 0.2.0
* This version is Ractor compatible.
* CSV
* Update to CSV 3.1.9
* Date
* Update to Date 3.1.1
* This ver...