356件ヒット
[301-356件を表示]
(0.105秒)
別のキーワード
ライブラリ
- ビルトイン (260)
- bigdecimal (12)
- delegate (24)
- psych (24)
-
rubygems
/ source _ index (12) -
rubygems
/ specification (12) -
rubygems
/ version (12)
クラス
- BigDecimal (12)
- Class (12)
- Complex (12)
- Delegator (24)
-
Encoding
:: Converter (72) -
Encoding
:: InvalidByteSequenceError (12) -
Encoding
:: UndefinedConversionError (12) -
Gem
:: SourceIndex (12) -
Gem
:: Specification (12) -
Gem
:: Version (12) - Object (84)
-
Process
:: Status (12) - Random (24)
- Rational (12)
- String (32)
キーワード
-
_ dump (36) -
_ load (12) - clone (12)
- convert (12)
- coredump? (12)
- dup (12)
-
error
_ bytes (12) -
error
_ char (12) -
insert
_ output (12) - inspect (12)
-
marshal
_ dump (72) -
marshal
_ load (36) -
primitive
_ convert (48) -
psych
_ to _ yaml (12) -
to
_ yaml (12) - undump (8)
検索結果
先頭5件
-
Object
# psych _ to _ yaml(options = {}) -> String (113.0) -
オブジェクトを YAML document に変換します。
...オブジェクトを YAML document に変換します。
options でオプションを指定できます。
Psych.dump と同じなので詳しくはそちらを参照してください。
syck に to_yaml メソッドがあるため、
psych_to_yaml が別名として定義されています。......将来的に
syck が廃止された場合 psych_to_yaml は廃止
される予定であるため、特別の事情がない限り to_yaml を用いてください。
@param options 出力オプション
@see Psych.dump... -
Object
# to _ yaml(options = {}) -> String (113.0) -
オブジェクトを YAML document に変換します。
...オブジェクトを YAML document に変換します。
options でオプションを指定できます。
Psych.dump と同じなので詳しくはそちらを参照してください。
syck に to_yaml メソッドがあるため、
psych_to_yaml が別名として定義されています。......将来的に
syck が廃止された場合 psych_to_yaml は廃止
される予定であるため、特別の事情がない限り to_yaml を用いてください。
@param options 出力オプション
@see Psych.dump... -
String
# inspect -> String (113.0) -
文字列オブジェクトの内容を、出力したときに人間が読みやすいような適当な形式に変換します。 変換された文字列は印字可能な文字のみによって構成されます
...ために用意されています。
永続化などの目的で文字列をダンプしたいときは、
String#dump を使うべきです。
//emlist[例][ruby]{
# p ではないことに注意
puts "string".inspect # => "string"
puts "\t\r\n".inspect # => "\t\r\n"
//}
@see String#dump... -
Delegator
# marshal _ load(obj) -> object (107.0) -
シリアライズされたオブジェクトから、Delegator#__getobj__ が返すオブジェクトを再現します。
...シリアライズされたオブジェクトから、Delegator#__getobj__ が返すオブジェクトを再現します。
@param obj Delegator#marshal_dumpの戻り値のコピー... -
Encoding
:: UndefinedConversionError # error _ char -> String (107.0) -
エラーを発生させた1文字を文字列で返します。
...エラーを発生させた1文字を文字列で返します。
//emlist[例][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
begin
ec.convert("\u{a0}")
rescue Encoding::UndefinedConversionError
puts $!.error_char.dump #=> "\u{a0}"
end
//}...