680件ヒット
[601-680件を表示]
(0.108秒)
別のキーワード
ライブラリ
- ビルトイン (288)
- abbrev (12)
-
cgi
/ core (12) - csv (24)
- erb (8)
- forwardable (24)
- json (108)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) -
net
/ http (36) -
rexml
/ document (36) -
webrick
/ httprequest (12)
クラス
- Array (12)
- BigDecimal (12)
- CGI (12)
-
CSV
:: Table (24) - Complex (12)
- Date (12)
- DateTime (12)
- ERB (8)
- Exception (12)
- Hash (24)
- Object (12)
-
REXML
:: Attributes (12) -
REXML
:: DocType (12) -
REXML
:: Element (12) - Range (12)
- Rational (12)
- Regexp (24)
- String (240)
- Struct (12)
- Time (12)
-
WEBrick
:: HTTPRequest (12)
モジュール
- Forwardable (24)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) -
Net
:: HTTPHeader (36)
検索結果
先頭5件
-
Time
# to _ json(*args) -> String (126.0) -
自身を JSON 形式の文字列に変換して返します。
...ータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
Time.now.to_json # => "{\"json_class\"......:\"Time\",\"s\":1544968675,\"n\":676167000}"
//}
@see JSON::Generator::GeneratorMethods::Hash#to_json... -
BigDecimal
# to _ json(*args) -> String (120.0) -
自身を JSON 形式の文字列に変換して返します。
...:Hash#to_json を呼び出しています。
@param args 使用しません。
//emlist[例][ruby]{
require 'json/add/bigdecimal'
BigDecimal('0.123456789123456789').to_json # => "{\"json_class\":\"BigDecimal\",\"b\":\"36:0.123456789123456789e0\"}"
//}
@see JSON::Generator::GeneratorMethods::Hash#... -
Complex
# to _ json(*args) -> String (120.0) -
自身を JSON 形式の文字列に変換して返します。
...ら JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 使用しません。
//emlist[例][ruby]{
require 'json/add/complex'
Complex(2, 3).to_json # => "{\"json_class\":\"Complex\",\"r\":2,\"i\":3}"
//}
@see JSON::Generator::GeneratorMethods::Hash#to_json... -
Rational
# to _ json(*args) -> String (120.0) -
自身を JSON 形式の文字列に変換して返します。
...JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 使用しません。
//emlist[例][ruby]{
require 'json/add/rational'
Rational(1, 3).to_json # => "{\"json_class\":\"Rational\",\"n\":1,\"d\":3}"
//}
@see JSON::Generator::GeneratorMethods::Hash#to_json... -
Regexp
# to _ json(*args) -> String (120.0) -
自身を JSON 形式の文字列に変換して返します。
...をセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json
に渡されます。
//emlist[例][ruby]{
require "json/add/core"
/0\d{1,4}-\d{1,4}-\d{4}/.to_json... -
CGI
# header(options = "text / html") -> String (114.0) -
HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。 CGI#out を使わずに自力で HTML を出力したい場合などに使います。 このメソッドは文字列エンコーディングを変換しません。
...Not Implemented"
"BAD_GATEWAY" --> "502 Bad Gateway"
"VARIANT_ALSO_VARIES" --> "506 Variant Also Negotiates"
@param options Hash か文字列で HTTP ヘッダを生成するための情報を指定します。
例:
header
# Content-Type: text/html... -
ERB
# result(b=TOPLEVEL _ BINDING) -> String (114.0) -
ERB を b の binding で実行し、結果の文字列を返します。
...し、結果の文字列を返します。
@param b eRubyスクリプトが実行されるときのbinding
//emlist[例][ruby]{
require 'erb'
erb = ERB.new("test <%= test1 %>\ntest <%= test2 %>\n")
test1 = "foo"
test2 = "bar"
puts erb.result
# test foo
# test bar
//}
@see ERB#result_with_hash... -
Regexp
# to _ json(*args) -> String (114.0) -
自身を JSON 形式の文字列に変換して返します。
...はハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数には何の意味もありません。
//emlist[例][ruby]{
require "json/add/core"
/0\d{1,4}-\d{1,4}-\d{4}/.to_json # => "{\"json_class\":\"Regexp... -
WEBrick
:: HTTPRequest # query -> Hash (114.0) -
リクエストのクエリーあるいはクライアントがフォームへ入力した値を表すハッシュを返します。
...content-transfer-encoding ヘッダを見て適切に処理する必要があります。
ハッシュの値は正確には文字列ではなく String クラスのサブクラスである WEBrick::HTTPUtils::FormData
クラスのインスタンスです。
multipart/form-data なフォームデ......からの入力によっては巨大な文字列が
生成されてしまいます。
例:
h = req.query
p h['q'] #=> "ruby rails session"
p h['upfile']['content-type'] #=> "plain/text"
p h['upfile'].filename #=> "my_file.txt"
p h['upfile']... -
REXML
:: Element # add _ element(element , attrs = nil) -> Element (25.0) -
子要素を追加します。
...{ String => String } という Hash を渡すと、
追加する要素の属性を指定できます。
子要素の最後に追加されます。
返り値は追加された要素です。
@param element 追加する要素
@param attrs 追加する要素に設定する属性
//emlist[][ruby]{...