るりまサーチ

最速Rubyリファレンスマニュアル検索!
107件ヒット [1-100件を表示] (0.027秒)
トップページ > クエリ:JSON[x] > クエリ:Integer[x]

別のキーワード

  1. json to_json
  2. json parser
  3. json state
  4. json parse
  5. json []

検索結果

<< 1 2 > >>

JSON::Ext::Generator::GeneratorMethods::Integer (21032.0)

Alias of JSON::Generator::GeneratorMethods::Integer

...Alias of JSON::Generator::GeneratorMethods::Integer...

JSON::Generator::GeneratorMethods::Integer (21032.0)

Integer に JSON で使用するインスタンスメソッドを追加するためのモジュールです。

...Integer JSON で使用するインスタンスメソッドを追加するためのモジュールです。...

JSON::Generator::GeneratorMethods::Integer#to_json(state_or_hash = nil) -> String (12147.0)

自身から生成した JSON 形式の文字列を返します。

...自身から生成した JSON 形式の文字列を返します。

@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
JSON::State のインスタンスか、
JSON
::State.new の引数と同じ Hash を...
...指定します。

//emlist[例][ruby]{
require "json"

10.to_json # => "10"
//}...

JSON::State#max_nesting -> Integer (3207.0)

生成される JSON 形式の文字列のネストの深さの最大値を返します。

... JSON 形式の文字列のネストの深さの最大値を返します。

この値がゼロである場合は、ネストの深さのチェックを行いません。

//emlist[例 ネストの深さチェックを行う][ruby]{
require "json"

json
_state = JSON::State.new(max_nesting: 2)
json
_s...
...# => 2
JSON
.generate([[]], json_state)
JSON
.generate([[[]]], json_state) # => JSON::NestingError
//}

//emlist[例 ネストの深さチェックを行わない][ruby]{
require "json"

json
_state = JSON::State.new(max_nesting: 0)
json
_state.max_nesting # => 0
JSON
.generate([[[[[...
...[[[[[]]]]]]]]]], json_state)
//}...

JSON::State#buffer_initial_length -> Integer (3117.0)

This integer returns the current initial length of the buffer.

...This integer returns the current initial length of the buffer....

絞り込み条件を変える

JSON::State#depth -> Integer (3117.0)

This integer returns the current depth of data structure nesting.

...This integer returns the current depth of data structure nesting....

JSON::State#depth=(depth) (3032.0)

This sets the maximum level of data structure nesting in the generated JSON to the integer depth, max_nesting = 0 if no maximum should be checked.

...This sets the maximum level of data structure nesting in the generated
JSON
to the integer depth, max_nesting = 0 if no maximum should be
checked....

NEWS for Ruby 2.5.0 (72.0)

NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...う。 13405

* Integer
* Integer#round, Integer#floor, Integer#ceil, Integer#truncate は常に Integer を返すようになりました
13420
* Integer#pow を追加 12508 11003
* Integer#allbits?, Integer#anybits?, Integer#nobits? を追加 12753
* Integer.sqrt を追加...
...option to a keyword argument
https://github.com/ruby/psych/pull/342
* Add :symbolize_names option to Psych.load, Psych.safe_load like JSON.parse
https://github.com/ruby/psych/pull/333, https://github.com/ruby/psych/pull/337
* Add Psych::Handler#event_location
htt...

NEWS for Ruby 3.1.0 (66.0)

NEWS for Ruby 3.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...をミリ秒で返します。 10917
* GC.total_time が計測された時間をナノ秒で返します。 10917

* Integer
* 新規メソッド
* Integer.try_convert が追加されました。 15211

* Kernel
* 変更されたメソッド
* Kernel#load が第2引数...
...り厳密に整数に変換されるようになりました。

//emlist[Time.new][ruby]{
Time.new(2021, 12, 25, "+07:30")
#=> invalid value for Integer(): "+07:30" (ArgumentError)
//}

* Ruby 3.0 以前では、予期しない結果の 2021-12-25 07:00:00 が返されました。 2021-12-25...
...1.0.1
* fiddle 1.1.0
* fileutils 1.6.0
* find 0.1.1
* io-console 0.5.10
* io-wait 0.2.1
* ipaddr 1.2.3
* irb 1.4.1
* json 2.6.1
* logger 1.5.0
* net-http 0.2.0
* net-protocol 0.1.2
* nkf 0.1.1
* open-uri 0.2.0
* openssl 3.0.0
* optparse 0.2...

NEWS for Ruby 2.7.0 (54.0)

NEWS for Ruby 2.7.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...ingPatternError
//}

//emlist{
json
= <<END
{
"name": "Alice",
"age": 30,
"children": [{ "name": "Bob", "age": 2 }]
}
END

JSON
.parse(json, symbolize_names: true) in {name: "Alice", children: [{name: name, age: age}]}

p name #=> "Bob"
p age #=> 2

JSON
.parse(json, symbolize_names: true) in {...
...エンコーディングを設定する
IO#set_encoding_by_bomメソッドが追加されました。 15210

* Integer
* 変更されたメソッド
* Integer#[] がRangeを受け付けるようになりました。 8842

//emlist[][ruby]{
0b01001101[2, 4] #=> 0b0011
0b01001100[...
...るようになりました。
* オートインデントと履歴の保存と読み込みがデフォルトで有効になりました。

* JSON
* 2.3.0に更新されました。

* Net::FTP
* 利用可能な拡張機能をチェックするためのNet::FTP#featuresと
...

絞り込み条件を変える

<< 1 2 > >>