ライブラリ
- ビルトイン (299)
- bigdecimal (17)
- date (12)
- dbm (12)
- gdbm (12)
- matrix (108)
- open-uri (4)
- psych (30)
-
rexml
/ document (144) -
rubygems
/ source _ index (12) -
rubygems
/ version (8) - sdbm (12)
クラス
- BigDecimal (17)
- DBM (12)
- Dir (9)
- File (9)
- Float (7)
- GDBM (12)
-
Gem
:: SourceIndex (12) -
Gem
:: Version (8) - Matrix (72)
- Module (20)
- Object (63)
- Proc (14)
-
RDoc
:: Options (12) -
REXML
:: Declaration (12) -
REXML
:: DocType (24) -
REXML
:: Document (48) -
REXML
:: Element (12) -
REXML
:: Entity (12) -
REXML
:: ExternalEntity (12) -
REXML
:: NotationDecl (12) - SDBM (12)
- String (112)
- Vector (36)
モジュール
- FileTest (9)
- Kernel (45)
- Psych (22)
-
REXML
:: Node (12) - Warning (11)
オブジェクト
- ENV (12)
キーワード
- =~ (9)
- DECLARATION (12)
- DateTime (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - ROUNDS (7)
- Rubyの起動 (6)
- [] (6)
- bytes (24)
- categories (1)
- chars (24)
- clone (12)
- codepoints (24)
- correct? (8)
-
deprecate
_ constant (12) -
det
_ e (12) -
determinant
_ e (12) -
elements
_ to _ f (24) -
elements
_ to _ i (24) -
elements
_ to _ r (24) -
entity
_ expansion _ limit (12) -
entity
_ expansion _ text _ limit (12) -
entity
_ expansion _ text _ limit= (12) - exists? (27)
-
from
_ installed _ gems (12) -
grapheme
_ clusters (16) - index (36)
- lambda (18)
- lines (24)
-
load
_ documents (8) - mathn (4)
- new (38)
- open (4)
- proc (19)
-
psych
_ yaml _ as (4) -
rank
_ e (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
safe
_ load (14) - taint (9)
- tainted? (9)
-
to
_ s (12) - trust (9)
- untaint (9)
- untrust (9)
- untrusted? (9)
- ver (5)
- warn (8)
- write (72)
-
yaml
_ as (4) - 演算子式 (1)
検索結果
先頭5件
-
RDoc
:: Options :: DEPRECATED -> {String -> String} (18301.0) -
非推奨のオプションの一覧を返します。
非推奨のオプションの一覧を返します。 -
ruby 1
. 8 . 3 feature (1494.0) -
ruby 1.8.3 feature *((<ruby 1.8 feature>)) *((<ruby 1.8.2 feature>))
...されたクラス/メソッドなど
* [compat]: 変更されたクラス/メソッドなど
* 互換性のある変更
* only backward-compatibility
* 影響の範囲が小さいと思われる変更もこちら
* [change]: 変更されたクラス/メソッドなど(互換......てください。
soap4r-1.5.3がruby-1.8.2、soap4r-1.5.5がruby-1.8.3にbundleされています。
* ((<URL:http://dev.ctor.org/soap4r/wiki/Changes-154>))
* ((<URL:http://dev.ctor.org/soap4r/wiki/Changes-155>))
== 1.8.2 (2004-12-25) -> 1.8.3 (2005-09-21)
=== 2005-09-19
: FileUtils.remove_ent......。
((<ruby-dev:26235>))
=== 2005-05-27
: mkmf [lib] [bug]
MSYS 環境下において、PATHの区切り値にセミコロンを使うよう修正しました。((<ruby-dev:26232>))
=== 2005-05-24
: getopts [lib] [obsolete]
getopts が deprecated になりました。deprecated であると... -
ruby 1
. 8 . 2 feature (1278.0) -
ruby 1.8.2 feature ruby 1.8.2 での ruby 1.8.1 からの変更点です。
...されたクラス/メソッドなど
* [compat]: 変更されたクラス/メソッドなど
* 互換性のある変更
* only backward-compatibility
* 影響の範囲が小さいと思われる変更
* [change]: 変更されたクラス/メソッドなど(互換性のない......の?)
* [obsolete]: 廃止された(される予定の)機能
* [platform]: 対応プラットフォームの追加
== 1.8.1 (2003-12-25) -> 1.8.2 (2004-12-25)
* cgi/session においてクライアントからセッション ID を指定できてしまうバグが
修正されました......CSV.parse("1,2\n3,r") #=> [['1', '2'], ['3', 'r']]
: CSV::Row [lib] [obsolete]
: CSV::Cell [lib] [obsolete]
CSV::Row と CSV::Cell が deprecated になりました。
: CSV.open, CSV.parse, and CSV,generate
必要ならばユーザが binmode をセットしなければならなく... -
Rubyの起動 (792.0)
-
Rubyの起動 * cmd_option * shebang
... -- ] [ programfile ] [ argument ...]
ここで、option は後述のcmd_option
のいずれかを指定します。-- は、オプション列の終りを明示するため
に使用できます。programfile は、Ruby スクリプトを記述したファイ
ルです。これを省略したり`-......います。
: -0数字
入力レコードセパレータ($/)を8進数で指定します。
数字を指定しない場合はヌルキャラクタがセパレータになります
($/ = "\0" と同じ)。
数の後に他のスイッチがあっても構いません。
-00で, パラ......ない
* -W1: 重要な警告のみ出力(デフォルト)
* -W2 or -W: すべての警告を出力する
//}
組み込み変数 $VERBOSE はそれぞれ nil, false, true
に設定されます。
また category には以下の値を設定できます。deprecated と experime... -
NEWS for Ruby 2
. 7 . 0 (432.0) -
NEWS for Ruby 2.7.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...は参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリストは ChangeLog ファイルか bugs.ruby-lang.org の issue を参照してください。
== 2.6.0 以降の変更
=== 言語仕様の変更
==== パターンマッチ
* パターンマ......=> [2, 3]
end
//}
//emlist[][ruby]{
case {a: 0, b: 1}
in {a: 0, x: 1}
:unreachable
in {a: 0, b: var}
p var #=> 1
end
//}
//emlist[][ruby]{
case -1
in 0 then :unreachable
in 1 then :unreachable
end #=> NoMatchingPatternError
//}
//emlist{
json = <<END
{
"name": "Alice",
"age": 30,
"child......# {}
//}
* 非推奨に関する警告を止めたい場合は、コマンドライン引数に
「-W:no-deprecated」を指定するか、コードの中で
「Warning[:deprecated] = false」
としてください。
==== 番号指定パラメータ
* 番号指定パラメー... -
NEWS for Ruby 3
. 0 . 0 (306.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...mlist{
def method_missing(meth, ...)
send(:"do_#{meth}", ...)
end
//}
* Pattern matching (`case/in`) is no longer experimental. 17260
* One-line pattern matching is redesigned. [EXPERIMENTAL]
* `=>` is added. It can be used like a rightward assignment.
17260
* `in......> 0
{b: 0, c: 1} => {b:}
p b #=> 0
//}
//emlist{
# version 3.0
0 in 1 #=> false
# version 2.7
0 in 1 #=> raise NoMatchingPatternError
//}
* Find-pattern is added. [EXPERIMENTAL]
16828
//emlist{
case ["a", 1, "b", "c", 2, "d", "e", "f", 3]
in [*pre, String => x, String => y, *post]
p pr......by programs.
* {TypeProf}[rdoc-label:label-TypeProf] is experimentally bundled. It is a
type analysis tool for Ruby programs.
* Deprecation warnings are no longer shown by default (since Ruby 2.7.2).
Turn them on with `-W:deprecated` (or with `-w` to show other warnings too).... -
Gem
:: SourceIndex . from _ installed _ gems(*deprecated) -> Gem :: SourceIndex (207.0) -
与えられたパスをもとに、インスタンスを作成するファクトリメソッドです。
...与えられたパスをもとに、インスタンスを作成するファクトリメソッドです。
@param deprecated この引数は非推奨です。後方互換性のためにのみ提供されているので使用すべきではありません。
@see Gem::SourceIndex.from_gems_in... -
Kernel
. # warn(*message , uplevel: nil , category: nil) -> nil (142.0) -
message を 標準エラー出力 $stderr に出力します。 $VERBOSE フラグ が nil のときは何も出力しません。
...ist[category の例][ruby]{
Warning[:deprecated] = true # 非推奨の警告を表示する
warn("deprecated!!", category: :deprecated)
# => deprecated!
Warning[:deprecated] = false # 非推奨の警告を表示しない
warn("deprecated!!", category: :deprecated)
# 警告は出力されない
//}... -
REXML
:: Document . entity _ expansion _ text _ limit -> Integer (136.0) -
実体参照の展開による文字列の増分(テキストのバイト数)の 最大値を指定します。
...トは 10240 (byte) です。
このメソッドは Ruby 2.1 から deprecated になりました。
REXML::Security.entity_expansion_text_limit を使ってください。
@see REXML::Document.entity_expansion_text_limit=,
http://www.ruby-lang.org/ja/news/2013/02/22/rexml-dos-2013-02-22/... -
Kernel
. # open(name , mode = & # 39;r& # 39; , perm = nil , options = {}) -> StringIO | Tempfile | IO (130.0) -
name が http:// や ftp:// で始まっている文字列なら URI のリソースを 取得した上で StringIO オブジェクトまたは Tempfile オブジェクトとして返します。 返されるオブジェクトは OpenURI::Meta モジュールで extend されています。
...Ruby2.7以降、open-uriにより拡張されたKernel.openでURLを開くときにwarningが表示されるようになりました。
require 'open-uri'
open("http://www.ruby-lang.org/") {|f|
# ...
}
#=> warning: calling URI.open via Kernel#open is deprecated, call URI.open directly......Net::FTPError のサブクラスが発生します。詳しくは net/ftp
を参照して下さい。
例:
require 'open-uri'
sio = open('http://www.example.com') { |sio|
p sio.is_a?(OpenURI::Meta) # => true
p sio.content_type
puts sio.read
}
@see OpenU... -
Kernel
. # open(name , mode = & # 39;r& # 39; , perm = nil , options = {}) {|ouri| . . . } -> object (130.0) -
name が http:// や ftp:// で始まっている文字列なら URI のリソースを 取得した上で StringIO オブジェクトまたは Tempfile オブジェクトとして返します。 返されるオブジェクトは OpenURI::Meta モジュールで extend されています。
...Ruby2.7以降、open-uriにより拡張されたKernel.openでURLを開くときにwarningが表示されるようになりました。
require 'open-uri'
open("http://www.ruby-lang.org/") {|f|
# ...
}
#=> warning: calling URI.open via Kernel#open is deprecated, call URI.open directly......Net::FTPError のサブクラスが発生します。詳しくは net/ftp
を参照して下さい。
例:
require 'open-uri'
sio = open('http://www.example.com') { |sio|
p sio.is_a?(OpenURI::Meta) # => true
p sio.content_type
puts sio.read
}
@see OpenU... -
Module
# deprecate _ constant(*name) -> self (124.0) -
name で指定した定数を deprecate に設定します。 deprecate に設定した定数を参照すると警告メッセージが表示されます。
...[:deprecated] のデフォルト値が false に変更になったため、
デフォルトでは警告が表示されません。
コマンドラインオプション(詳細はd:spec/rubycmd#cmd_option参照)で、
「-w」か「-W2」などを指定するか、実行中に「Warning[:deprecated]......= true」で
変更すると表示されるようになります。
「$VERBOSE = true」は「Warning[:deprecated]」に影響しないため、
表示されるかどうかは変わりません。
@param name 0 個以上の String か Symbol を指定します。
@raise NameError 存在しない......定数を指定した場合に発生します。
@return self を返します。
//emlist[例][ruby]{
FOO = 123
Object.deprecate_constant(:FOO) # => Object
FOO
# warning: constant ::FOO is deprecated
# => 123
Object.deprecate_constant(:BAR)
# NameError: constant Object::BAR not defined
//}... -
Object
# taint -> self (122.0) -
このメソッドは Ruby 2.7 から deprecated で、Ruby 3.2 で削除予定です。
...このメソッドは Ruby 2.7 から deprecated で、Ruby 3.2 で削除予定です。
オブジェクトの「汚染マーク」をセットします。
環境変数(ENVで得られる文字列)など一部のオブジェクトは最初から汚染されています。
オブジェクト......FE = 1
some = "puts '@&%&(#!'"
p some.tainted? #=> false
eval(some) #=> @&%&(#!
some.taint
p some.tainted? #=> true
eval(some) # Insecure operation - eval (SecurityError)
some.untaint
p some.tainted? #=> false
eval(some) #=> @&%&(#!
p ENV['OS'].tainted? #=> true
//}
@see Object#tainted?,Object#...