In: |
yaml/types.rb
|
Parent: | Object |
# File yaml/types.rb, line 28 def initialize( domain, type, val ) @domain = domain; @type_id = type; @value = val end
# File yaml/types.rb, line 38 def to_yaml( opts = {} ) YAML::quick_emit( self.object_id, opts ) { |out| out << " !#{to_yaml_type} " value.to_yaml( :Emitter => out ) } end