Class: Class
Overview
Work around this by representing a class by its name.
Instance Method Summary collapse
-
#__to_yaml__ ⇒ Object
:nodoc: all.
- #to_yaml(opts = {}) ⇒ Object
Instance Method Details
#to_yaml(opts = {}) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/dfect.rb', line 18 def to_yaml opts = {} begin __to_yaml__ rescue TypeError => e warn e self.name.to_yaml opts end end |