53件ヒット
[1-53件を表示]
(0.093秒)
ライブラリ
- json (22)
-
json
/ add / bigdecimal (11)
クラス
- BigDecimal (11)
モジュール
- JSON (22)
キーワード
-
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
json
_ create (11) - restore (11)
-
ruby 1
. 8 . 4 feature (11)
検索結果
先頭5件
-
JSON
. # load(source , proc = nil , options = {}) -> object (18237.0) -
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
...require 'json'
str=<<JSON
[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......、to_str, to_io, read メソッドを持つオブジェクトも指定可能です。
@param proc Proc オブジェクトを指定します。
@param options オプションをハッシュで指定します。指定可能なオプションは以下の通りです。
: :max_nesting
入れ子に......真です。
: :quirks_mode
真を指定するとパース時に単一のJSON値を受け入れます。デフォルトは真です。このモードは2.4.0からは削除され、常にパース時に単一のJSON値を受け入れる形になりました。
: :create_additions
偽を指定す......すると、sourceがnilの場合にnilを返します。デフォルトは真です。
: :create_additions
偽を指定するとマッチするクラスや JSON.create_id が見つかっても付加情報を生成しません。
デフォルトは真です。
: :symbolize_names
真を指定... -
BigDecimal
. json _ create(hash) -> BigDecimal (9207.0) -
JSON のオブジェクトから BigDecimal のオブジェクトを生成して返します。
...JSON のオブジェクトから BigDecimal のオブジェクトを生成して返します。
@param hash Marshal.#load 可能な値をキー 'b' に持つハッシュを指定します。... -
JSON
. # restore(source , proc = nil , options = {}) -> object (3137.0) -
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
...require 'json'
str=<<JSON
[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......、to_str, to_io, read メソッドを持つオブジェクトも指定可能です。
@param proc Proc オブジェクトを指定します。
@param options オプションをハッシュで指定します。指定可能なオプションは以下の通りです。
: :max_nesting
入れ子に......真です。
: :quirks_mode
真を指定するとパース時に単一のJSON値を受け入れます。デフォルトは真です。このモードは2.4.0からは削除され、常にパース時に単一のJSON値を受け入れる形になりました。
: :create_additions
偽を指定す......すると、sourceがnilの場合にnilを返します。デフォルトは真です。
: :create_additions
偽を指定するとマッチするクラスや JSON.create_id が見つかっても付加情報を生成しません。
デフォルトは真です。
: :symbolize_names
真を指定... -
ruby 1
. 8 . 4 feature (162.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...更
# * [api]: 拡張ライブラリ API
# * [lib]: ライブラリ
* レベル
* [bug]: バグ修正
* [new]: 追加されたクラス/メソッドなど
* [compat]: 変更されたクラス/メソッドなど
* 互換性のある変更
* only backward-compatibility
* 影......fixed by Lloyd Zusman (hippoman): [ruby-core:06326]
NULLポインタを持つStringを渡すとFile.joinがSEGVすることがあった
バグの修正。((<ruby-core:06326>))
: Thread#pass [bug]
#Sun Oct 16 03:38:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
#
# * eval.c (load_......3_EXT_nconf_nid.
#
# * ext/openssl/ossl_x509ext.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
#... -
NEWS for Ruby 2
. 7 . 0 (30.0) -
NEWS for Ruby 2.7.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...ルか bugs.ruby-lang.org の issue を参照してください。
== 2.6.0 以降の変更
=== 言語仕様の変更
==== パターンマッチ
* パターンマッチが実験的機能として導入されました。 14912
//emlist[][ruby]{
case [0, [1, 2, 3]]
in [a, [b, *c]]
p a #=> 0......#lambdaをブロックなしで呼び出すと
例外が発生するようになりました。
//emlist[][ruby]{
def bar
lambda
end
bar { puts "Hello" } #=> tried to create Proc object without a block (ArgumentError)
//}
==== その他の変更
* 始端なしRangeが実験的に導入さ......* Module#const_defined?のようにModule#autoload?が
inheritオプショナル引数を受け付けるようになりました。 15777
* Module#nameが常にfreezeされた文字列を返すようになりました。
同じModuleは常に同じStringを返します。... -
NEWS for Ruby 3
. 0 . 0 (24.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matches the behavior of Procs
accepting......ir values. 15822
* Windows: Read ENV names and values as UTF-8 encoded Strings 12650
* Encoding
* Added new encoding IBM720. 16233
* Changed default for Encoding.default_external to UTF-8 on Windows 16604
* Fiber
* Fiber.new(blocking: true/false) allows you to create non-blocki......code is executed in a background thread.
* Reduce the number of locks between Ruby and JIT threads.
== Static analysis
=== RBS
* RBS is a new language for type definition of Ruby programs. It allows writing types of classes and modules with advanced types including union types, overloading,...