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