Class: Symbol

Inherits:
Object show all
Defined in:
lib/uttk/dumpers/Yaml.rb

Overview

Author

Nicolas Pouillard <[email protected]>.

Copyright

Copyright © 2004, 2005 Uttk team. All rights reserved.

License

LGPL

$Id: /w/fey/uttk/trunk/lib/uttk/dumpers/Yaml.rb 24396 2006-07-10T08:23:37.784417Z ertai $

Instance Method Summary collapse

Instance Method Details

#old_to_yamlObject



7
# File 'lib/uttk/dumpers/Yaml.rb', line 7

alias_method :old_to_yaml, :to_yaml

#to_yaml(opts = {}) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/uttk/dumpers/Yaml.rb', line 8

def to_yaml ( opts={} )
  if YAML.have_option? opts, :uttk
    self.to_s.to_yaml(opts)
  else
    old_to_yaml(opts)
  end
end