Ruby 1.9.2 Reference Manual > All Libraries > library syck/rubytypes > class Struct > yaml_tag_read_class
yaml_tag_read_class(name) -> String [added by syck/rubytypes]
引数 name に Struct:: を加えた文字列を返します。
require 'yaml'
YStruct = Struct.new("YStruct", :name)
p YStruct::yaml_tag_read_class("YStruct")
#=> "Struct::YStruct"