239件ヒット
[1-100件を表示]
(0.026秒)
別のキーワード
種類
- インスタンスメソッド (151)
- 特異メソッド (55)
- クラス (22)
- ライブラリ (11)
ライブラリ
- psych (228)
クラス
- Module (8)
- Object (11)
-
Psych
:: Handler (44) -
Psych
:: Nodes :: Document (33) -
Psych
:: Nodes :: Mapping (33) -
Psych
:: Nodes :: Node (11) -
Psych
:: Nodes :: Scalar (33) -
Psych
:: Nodes :: Sequence (33)
キーワード
- Parser (11)
- Sequence (11)
- new (44)
-
psych
_ yaml _ as (4) - scalar (11)
-
start
_ document (11) -
start
_ mapping (11) -
start
_ sequence (11) - tag= (33)
-
tag
_ directives (11) -
tag
_ directives= (11) - yaml (11)
-
yaml
_ as (4) -
yaml
_ tag (11)
検索結果
先頭5件
-
Psych
:: Nodes :: Mapping # tag -> String|nil (29135.0) -
mapping に付加された tag を返します。
...mapping に付加された tag を返します。
@see Psych::Nodes::Mapping#tag=,
Psych::Nodes::Mapping.new... -
Psych
:: Nodes :: Scalar # tag -> String|nil (29135.0) -
scalar に付加された tag を返します。
...scalar に付加された tag を返します。
@see Psych::Nodes::Scalar#tag=,
Psych::Nodes::Scalar.new... -
Psych
:: Nodes :: Sequence # tag -> String|nil (29135.0) -
sequence に付加された tag を返します。
...sequence に付加された tag を返します。
@see Psych::Nodes::Sequence#tag=,
Psych::Nodes::Sequence.new... -
Psych
:: Nodes :: Node # tag -> String | nil (29125.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 :: Document # tag _ directives=(tags) (17241.0) -
tag directive の配列を設定します。
...tag directive の配列を設定します。
@param tags 設定する tag directive の配列
@see Psych::Nodes::Document#tag_directives,
Psych::Nodes::Document.new... -
Psych
:: Nodes :: Scalar # tag=(t) (17141.0) -
scalar に付加された tag を変更します。
...scalar に付加された tag を変更します。
@param t 設定する tag
@see Psych::Nodes::Scalar#tag,
Psych::Nodes::Scalar.new... -
Psych
:: Nodes :: Document # tag _ directives -> [[String , String]] (17135.0) -
tag directive の配列を返します。
...tag directive の配列を返します。
@see Psych::Nodes::Document#tag_directives=,
Psych::Nodes::Document.new... -
Psych
:: Nodes :: Mapping # tag=(t) (17135.0) -
mapping に付加する tag を設定します。
...mapping に付加する tag を設定します。
@param t 設定する tag
@see Psych::Nodes::Mapping#anchor=,
Psych::Nodes::Mapping.new... -
Psych
:: Nodes :: Sequence # tag=(t) (17135.0) -
sequence に付加する tag を設定します。
...sequence に付加する tag を設定します。
@param t 設定する tag
@see Psych::Nodes::Sequence#anchor=,
Psych::Nodes::Sequence.new... -
Object
. yaml _ tag(tag) -> () (14278.0) -
クラスと tag の間を関連付けます。
... tag の間を関連付けます。
これによって tag 付けされた YAML ドキュメントを Ruby のオブジェクトに
変換したりその逆をしたりすることができます。
@param tag 対象のクラスに関連付けるタグの文字列
=== Example
require 'psych'......umps Ruby object normally
p Psych.dump(Foo.new(3))
# =>
# --- !ruby/object:Foo
# x: 3
# Registers tag with class Foo
Foo.yaml_as("tag:example.com,2013:foo")
# ... and dumps the object of Foo class
Psych.dump(Foo.new(3), STDOUT)
# =>
# --- !<tag:example.com,2013:foo>
# x:......3
# Loads the object from the tagged YAML node
p Psych.load(<<EOS)
--- !<tag:example.com,2012:foo>
x: 8
EOS
# => #<Foo:0x0000000130f48 @x=8>...