るりまサーチ

最速Rubyリファレンスマニュアル検索!
528件ヒット [1-100件を表示] (0.090秒)

別のキーワード

  1. << rexml::attribute#name
  2. add rexml::attribute#name
  3. handle_interrupt thread#raise
  4. service drb::extserv#stop_service
  5. inspect? irb::context#inspect_mode

検索結果

<< 1 2 3 ... > >>

JSON::Ext::Generator::GeneratorMethods::String (24018.0)

Alias of JSON::Generator::GeneratorMethods::String

...Alias of JSON::Generator::GeneratorMethods::String...

JSON::Generator::GeneratorMethods::String (24018.0)

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

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

JSON::Generator::GeneratorMethods::String#to_json_raw -> String (6225.0)

自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。

...自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。

@see JSON::Generator::GeneratorMethods::String#to_json_raw_object, JSON::Generator::GeneratorMethods::Hash#to_json...

JSON::Generator::GeneratorMethods::String::Extend.json_create(hash) -> String (6209.0)

JSON のオブジェクトから Ruby の文字列を生成して返します。

...
JSON
のオブジェクトから Ruby の文字列を生成して返します。

@param hash キーとして "raw" という文字列を持ち、その値として数値の配列を持つハッシュを指定します。

require 'json'
String
.json_create({"raw" => [0x41, 0x42, 0x43]}) # => "A...

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

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

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

自身のエンコードは UTF-8 であるべきです。
"\u????" のように UTF-16 ビッグエンディアンでエンコードされた文字列を返すことがあります。

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

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

puts "test".to_json # => "test"
puts '"'.to_json #...
...=> "\""
puts "\\".to_json # => "\\"
puts "𤘩宮城".to_json(ascii_only: true) # => "\ud851\ude29\u5bae\u57ce"
//}...

絞り込み条件を変える

JSON::Ext::Generator::GeneratorMethods::String::Extend (6018.0)

Alias of JSON::Generator::GeneratorMethods::String::Extend

...Alias of JSON::Generator::GeneratorMethods::String::Extend...

JSON::Generator::GeneratorMethods::String::Extend (6018.0)

String に JSON で使用する特異メソッドを追加するためのモジュールです。

...String JSON で使用する特異メソッドを追加するためのモジュールです。...

JSON::Generator::GeneratorMethods::String#to_json_raw_object -> Hash (6008.0)

生の文字列を格納したハッシュを生成します。

... JSON に変換する場合に使用してください。

require 'json'
"にほんご".encode("euc-jp").to_json_raw_object
# => {"json_class"=>"String", "raw"=>[164, 203, 164, 219, 164, 243, 164, 180]}
"にほんご".encode("euc-jp").to_json # source sequence is illegal/malformed (JSON::Ge...

JSON::Generator::GeneratorMethods::TrueClass#to_json(state_or_hash = nil) -> String (3203.0)

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

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

"true" という文字列を返します。

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

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

tr
ue.to_json # => "true"
//}...

OpenStruct#to_json(*args) -> String (3202.0)

自身を JSON 形式の文字列に変換して返します。

...自身を JSON 形式の文字列に変換して返します。

内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。

@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡...
...されます。

@see JSON::Generator::GeneratorMethods::Hash#to_json...

絞り込み条件を変える

<< 1 2 3 ... > >>