71件ヒット
[1-71件を表示]
(0.014秒)
ライブラリ
- json (24)
-
json
/ add / bigdecimal (12) - psych (12)
クラス
- BigDecimal (12)
モジュール
- JSON (24)
キーワード
-
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - Nodes (12)
-
json
_ create (12) - restore (12)
-
ruby 1
. 8 . 4 feature (12)
検索結果
先頭5件
-
JSON
. # load(source , proc = nil , options = {}) -> object (18137.0) -
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
...SON
[1,2,3]
JSON
JSON.load(str) # => [1,2,3]
JSON.load(str, proc{|v| p v }) # => [1,2,3]
# 以下が表示される
# 1
# 2
# 3
# [1,2,3]
str=<<JSON
{ "a":1, "b":2, "c":3 }
JSON
JSON.load(str) # => {"a"=>1, "b"=>2, "c"=>3}
JSON.load(str, proc{|v| p v }) # => {"a".......4.0からは削除され、常にパース時に単一のJSON値を受け入れる形になりました。
: :create_additions
偽を指定するとマッチするクラスや JSON.create_id が見つかっても付加情報を生成しません。
デフォルトは真です。
: :symbolize_na......blank
真を指定すると、sourceがnilの場合にnilを返します。デフォルトは真です。
: :create_additions
偽を指定するとマッチするクラスや JSON.create_id が見つかっても付加情報を生成しません。
デフォルトは真です。
: :symbolize_na... -
BigDecimal
. json _ create(hash) -> BigDecimal (6107.0) -
JSON のオブジェクトから BigDecimal のオブジェクトを生成して返します。
...JSON のオブジェクトから BigDecimal のオブジェクトを生成して返します。
@param hash Marshal.#load 可能な値をキー 'b' に持つハッシュを指定します。... -
JSON
. # restore(source , proc = nil , options = {}) -> object (3037.0) -
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
...SON
[1,2,3]
JSON
JSON.load(str) # => [1,2,3]
JSON.load(str, proc{|v| p v }) # => [1,2,3]
# 以下が表示される
# 1
# 2
# 3
# [1,2,3]
str=<<JSON
{ "a":1, "b":2, "c":3 }
JSON
JSON.load(str) # => {"a"=>1, "b"=>2, "c"=>3}
JSON.load(str, proc{|v| p v }) # => {"a".......4.0からは削除され、常にパース時に単一のJSON値を受け入れる形になりました。
: :create_additions
偽を指定するとマッチするクラスや JSON.create_id が見つかっても付加情報を生成しません。
デフォルトは真です。
: :symbolize_na......blank
真を指定すると、sourceがnilの場合にnilを返します。デフォルトは真です。
: :create_additions
偽を指定するとマッチするクラスや JSON.create_id が見つかっても付加情報を生成しません。
デフォルトは真です。
: :symbolize_na... -
ruby 1
. 8 . 4 feature (30.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...グの修正。((<ruby-core:06326>))
: Thread#pass [bug]
#Sun Oct 16 03:38:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
#
# * eval.c (load_wait): need not to call rb_thread_schedule()
# explicitly. [ruby-core:04039]
#
# * eval.c (rb_thread_schedule): clear rb_thread_criti......by-lang.org>
#
# * eval.c (ev_const_get), variable.c (rb_const_get_0): retry only when
# autoload succeeded.
#
# * variable.c (rb_autoload_load): now return true if autoload
# succeeded. fixed: [ruby-dev:27331]
const_missingが再定義されていて実行を継続......xt.c (MakeX509ExtFactory): should use
# OPENSSL_malloc to allocate X509V3_CTX.
#
# * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_create_ext): use
# X509V3_EXT_nconf_nid to avoid SEGV (and to build extensions which
# values are placed in separate section).
#
#... -
NEWS for Ruby 2
. 7 . 0 (24.0) -
NEWS for Ruby 2.7.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...で呼び出すと
例外が発生するようになりました。
//emlist[][ruby]{
def bar
lambda
end
bar { puts "Hello" } #=> tried to create Proc object without a block (ArgumentError)
//}
==== その他の変更
* 始端なしRangeが実験的に導入されました。
caseやC......で全ての引数を転送する時に使えます。 16154
* 変更されたメソッド
* Module#const_defined?のようにModule#autoload?が
inheritオプショナル引数を受け付けるようになりました。 15777
* Module#nameが常にfreezeされた文字列......ge#include?から変更されていました。)
15449
* RubyVM
* 削除されたメソッド
* RubyVM.resolve_feature_pathが$LOAD_PATH.resolve_feature_pathに移動しました。
15903 15230
* String
* Unicode
* Unicodeのバージョンと絵文字のバ... -
NEWS for Ruby 3
. 0 . 0 (18.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...16233
* Changed default for Encoding.default_external to UTF-8 on Windows 16604
* Fiber
* Fiber.new(blocking: true/false) allows you to create non-blocking execution contexts. 16786
* Fiber#blocking? tells whether the fiber is non-blocking. 16786
* Fiber#backtrace and Fiber#backt......en using a scheduler. 16792
* Proc
* Proc#== and Proc#eql? are now defined and will return true for separate Proc instances if the procs were created from the same block. 14267
* Queue / SizedQueue
* Queue#pop, SizedQueue#push and related methods may now invoke the `block`/`unblock` sche......pes of classes and modules with advanced types including union types, overloading, generics, and _interface types_ for duck typing.
* Ruby ships with type definitions for core/stdlib classes.
* `rbs` gem is bundled to load and process RBS files.
=== TypeProf
* TypeProf is a type analysis too... -
Psych
:: Nodes (12.0) -
Psych が中間データとして利用している AST (Abstract Syntax Tree) に 関するモジュール。
...Psych が中間データとして利用している AST (Abstract Syntax Tree) に
関するモジュール。
Psych.load によって YAML ドキュメントを Ruby オブジェクトに変換
するときには、一度中間的な AST に変換され、その AST が Ruby の
オブジェクト......クトに変換したりすることができます。
以下の例ではスカラを1つ持つリストの AST を構築しています。
# Create our nodes
stream = Psych::Nodes::Stream.new
doc = Psych::Nodes::Document.new
seq = Psych::Nodes::Sequence.new
scalar = Psych::Nodes::...