Class: Complex

Inherits:
Object show all
Defined in:
lib/syck/rubytypes.rb

Instance Method Summary collapse

Instance Method Details

#to_yaml(opts = {}) ⇒ Object



427
428
429
430
431
432
433
434
435
# File 'lib/syck/rubytypes.rb', line 427

def to_yaml( opts = {} )
       return super unless YAML == Syck
	Syck::quick_emit( self, opts ) do |out|
		out.map( taguri, nil ) do |map|
			map.add( 'image', imaginary )
			map.add( 'real', real )
		end
	end
end