るりまサーチ

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

検索結果

<< 1 2 3 > >>

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

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

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

@param string 変換文字列...

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

tag directive の配列を返します。

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

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

Psych::ScalarScanner#tokenize(string) -> object (6210.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 (6205.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 (6205.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...

絞り込み条件を変える

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

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

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

io に IO オブジェクトを指定した場合は、その
オブジェクトに変換後のドキュメントが書き込まれます。
この場合は io を返り値として返します。

io を省略した(nil を指定した)場合...
...ドキュメントを
文字列で返します。

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

options には以下が指定できます。

: :version
YAML document に付加するバージョンを [major, minor]...
...entation
インデントのレベルを 1 から 9 までの整数で指定します
: :canonical
出力の style が canonical であるかどうかを真偽値で指定します
: :line_width
「好ましい」行幅を整数値で指定します

@param io 書き込み先の IO
@param optio...

Psych::Nodes::Mapping#tag -> String|nil (6204.0)

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

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

@see Psych::Nodes::Mapping#tag=,
Psych
::Nodes::Mapping.new...

Psych::Nodes::Node#tag -> String | nil (6204.0)

ノードに付加されたタグを返します。

...されていない場合は nil を返します。

ast = Psych.parse(<<EOS)
---
- !!str a
- b
EOS

p ast.root.children[0].value # => "a"
p ast.root.children[0].tag # => "tag:yaml.org,2002:str"

p ast.root.children[1].value # => "b"
p ast.root.children[1].tag # => nil...

Psych::Nodes::Scalar#tag -> String|nil (6204.0)

scalar に付加された tag を返します。

...scalar に付加された tag を返します。

@see Psych::Nodes::Scalar#tag=,
Psych
::Nodes::Scalar.new...
<< 1 2 3 > >>