11件ヒット
[1-11件を表示]
(0.012秒)
検索結果
-
Object
. yaml _ tag(tag) -> () (18107.0) -
クラスと tag の間を関連付けます。
...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>...