Class: Complex
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
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::ENGINE.syck? YAML::quick_emit( self, opts ) do |out| out.map( taguri, nil ) do |map| map.add( 'image', imaginary ) map.add( 'real', real ) end end end |