るりまサーチ

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

別のキーワード

  1. string []=
  2. string slice
  3. string slice!
  4. string []
  5. string gsub

検索結果

<< 1 2 > >>

Psych::Nodes::Document#tag_directives -> [[String, String]] (413.0)

tag directive の配列を返します。

...tag directive の配列を返します。

@
see Psych::Nodes::Document#tag_directives=,
Psych
::Nodes::Document.new...

Psych::ScalarScanner#parse_time(string) -> Time (223.0)

文字列を Time オブジェクトに変換します。

...文字列を Time オブジェクトに変換します。

@
param string 変換文字列...

Psych::ScalarScanner#tokenize(string) -> object (223.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 (219.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 (219.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 (219.0)

AST を YAML ドキュメントに変換します。

...返り値として返します。

io を省略した(nil を指定した)場合には変換後のドキュメントを
文字列で返します。

Psych
::Nodes::Stream 以外を変換しようとすると、AST として不正で
あるためエラーが発生します。

options には以下が...
...ントのレベルを 1 から 9 までの整数で指定します
: :canonical
出力の style が canonical であるかどうかを真偽値で指定します
: :line_width
「好ましい」行幅を整数値で指定します

@
param io 書き込み先の IO
@
param options オプション...

Psych::Nodes::Node#yaml(io=nil, options={}) -> String | IO (219.0)

AST を YAML ドキュメントに変換します。

...返り値として返します。

io を省略した(nil を指定した)場合には変換後のドキュメントを
文字列で返します。

Psych
::Nodes::Stream 以外を変換しようとすると、AST として不正で
あるためエラーが発生します。

options には以下が...
...ントのレベルを 1 から 9 までの整数で指定します
: :canonical
出力の style が canonical であるかどうかを真偽値で指定します
: :line_width
「好ましい」行幅を整数値で指定します

@
param io 書き込み先の IO
@
param options オプション...

Psych::Nodes::Alias#anchor -> String (211.0)

alias が指す先の anchor を返します。

...alias が指す先の anchor を返します。

@
see Psych::Nodes::Alias#anchor=,
Psych
::Nodes::Alias.new...

Psych::Nodes::Mapping#anchor -> String|nil (211.0)

mapping に付加された anchor を返します。

...mapping に付加された anchor を返します。

@
see Psych::Nodes::Mapping#anchor=,
Psych
::Nodes::Mapping.new...
<< 1 2 > >>