In Files

  • yaml/types.rb

YAML::DomainType

Default domain type

Public Class Methods

new( domain, type, val ) click to toggle source
 
               # File yaml/types.rb, line 31
def initialize( domain, type, val )
    @domain = domain; @type_id = type; @value = val
    @value.taguri = "tag:#{ @domain }:#{ @type_id }"
end
            
tag_subclasses?() click to toggle source
 
               # File yaml/types.rb, line 29
def self.tag_subclasses?; false; end
            

Public Instance Methods

to_yaml( opts = {} ) click to toggle source
 
               # File yaml/types.rb, line 35
def to_yaml( opts = {} )
    @value.to_yaml( opts )
end