singleton method Struct.yaml_tag_read_class
yaml_tag_read_class(name) -> String
[added by syck/rubytypes]-
引数 name に Struct:: を加えた文字列を返します。
- [PARAM] name:
- 構造体の名前を指定します。
- [RETURN]
- 引数 name に Struct:: を加えた文字列。
require 'yaml' YStruct = Struct.new("YStruct", :name) p YStruct::yaml_tag_read_class("YStruct") #=> "Struct::YStruct"
class Struct