343件ヒット
[1-100件を表示]
(0.024秒)
種類
- インスタンスメソッド (228)
- 特異メソッド (79)
- 定数 (24)
- クラス (12)
クラス
- Object (24)
-
Psych
:: Nodes :: Alias (12) -
Psych
:: Nodes :: Document (12) -
Psych
:: Nodes :: Mapping (24) -
Psych
:: Nodes :: Node (36) -
Psych
:: Nodes :: Scalar (36) -
Psych
:: Nodes :: Sequence (24) -
Psych
:: ScalarScanner (24) -
Psych
:: SyntaxError (36) -
Psych
:: Visitors :: YAMLTree (12)
モジュール
- Psych (91)
キーワード
- Emitter (12)
-
LIBYAML
_ VERSION (12) - VERSION (12)
- anchor (48)
- context (12)
- dump (24)
-
dump
_ stream (12) - file (12)
- new (12)
-
parse
_ time (12) - problem (12)
-
psych
_ to _ yaml (12) -
safe
_ load (19) - tag (48)
-
tag
_ directives (12) -
to
_ json (12) -
to
_ yaml (24) - tokenize (12)
- value (12)
- yaml (12)
検索結果
先頭5件
-
Psych
:: Nodes :: Document # tag _ directives -> [[String , String]] (204.0) -
tag directive の配列を返します。
...tag directive の配列を返します。
@see Psych::Nodes::Document#tag_directives=,
Psych::Nodes::Document.new... -
Psych
. dump(o , options = {}) -> String (109.0) -
Ruby のオブジェクト o を YAML ドキュメントに変換します。
...list[例][ruby]{
# Dump an array, get back a YAML string
Psych.dump(['a', 'b']) # => "---\n- a\n- b\n"
# Dump an array to an IO object
Psych.dump(['a', 'b'], StringIO.new) # => #<StringIO:0x000001009d0890>
# Dump an array with indentation set
Psych.dump(['a', ['b']], :indentation => 3) # => "---......\n- a\n- - b\n"
# Dump an array to an IO with indentation set
Psych.dump(['a', ['b']], StringIO.new, :indentation => 3)
//}... -
Psych
:: ScalarScanner # parse _ time(string) -> Time (109.0) -
文字列を Time オブジェクトに変換します。
...文字列を Time オブジェクトに変換します。
@param string 変換文字列... -
Psych
:: ScalarScanner # tokenize(string) -> object (109.0) -
YAML の scalar である文字列を Ruby のオブジェクトに変換した ものを返します。
...YAML の scalar である文字列を Ruby のオブジェクトに変換した
ものを返します。
scanner = Psych::ScalarScanner.new
p scanner.tokenize("yes") # => true
p scanner.tokenize("year") # => "year"
p scanner.tokenize("12") # => 12
@param string 変換文字列... -
Object
# psych _ to _ yaml(options = {}) -> String (104.0) -
オブジェクトを YAML document に変換します。
...ョンを指定できます。
Psych.dump と同じなので詳しくはそちらを参照してください。
syck に to_yaml メソッドがあるため、
psych_to_yaml が別名として定義されています。将来的に
syck が廃止された場合 psych_to_yaml は廃止
される予......定であるため、特別の事情がない限り to_yaml を用いてください。
@param options 出力オプション
@see Psych.dump... -
Object
# to _ yaml(options = {}) -> String (104.0) -
オブジェクトを YAML document に変換します。
...ョンを指定できます。
Psych.dump と同じなので詳しくはそちらを参照してください。
syck に to_yaml メソッドがあるため、
psych_to_yaml が別名として定義されています。将来的に
syck が廃止された場合 psych_to_yaml は廃止
される予......定であるため、特別の事情がない限り to_yaml を用いてください。
@param options 出力オプション
@see Psych.dump... -
Psych
:: Nodes :: Node # to _ yaml(io=nil , options={}) -> String | IO (104.0) -
AST を YAML ドキュメントに変換します。
...返り値として返します。
io を省略した(nil を指定した)場合には変換後のドキュメントを
文字列で返します。
Psych::Nodes::Stream 以外を変換しようとすると、AST として不正で
あるためエラーが発生します。
options には以下が... -
Psych
:: Nodes :: Node # yaml(io=nil , options={}) -> String | IO (104.0) -
AST を YAML ドキュメントに変換します。
...返り値として返します。
io を省略した(nil を指定した)場合には変換後のドキュメントを
文字列で返します。
Psych::Nodes::Stream 以外を変換しようとすると、AST として不正で
あるためエラーが発生します。
options には以下が... -
Psych
. dump _ stream(*objects) -> String (103.0) -
オブジェクト列を YAML ドキュメント列に変換します。
...オブジェクト列を YAML ドキュメント列に変換します。
@param objects 変換対象のオブジェクト列
//emlist[例][ruby]{
Psych.dump_stream("foo\n ", {}) # => "--- ! \"foo\\n \"\n--- {}\n"
//}...