v1_9_1_378 - Show latest stable - 0 notes - Class: YAML
tag_class( tag, cls ) public

Associates a taguri tag with a Ruby class cls. The taguri is used to give types to classes when loading YAML. Taguris are of the form:


The authorityName is a domain name or email address. The date is the date the type was issued in YYYY or YYYY-MM or YYYY-MM-DD format. The specific is a name for the type being added.

For example, built-in YAML types have ‘’ as the authorityName and ‘2002’ as the date. The specific is simply the name of the type:,2002:int,2002:float,2002:timestamp

The domain must be owned by you on the date declared. If you don’t own any domains on the date you declare the type, you can simply use an e-mail address.,2004:notes/personal

Show source
Register or log in to add new notes.