Class: Syck::Object

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

Overview

Unresolved objects

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.tag_subclasses?Boolean

Returns:

  • (Boolean)

46
# File 'lib/syck/types.rb', line 46

def self.tag_subclasses?; false; end

Instance Method Details

#to_yaml(opts = {}) ⇒ Object


47
48
49
50
51
52
53
54
55
# File 'lib/syck/types.rb', line 47

def to_yaml( opts = {} )
    Syck.quick_emit( self, opts ) do |out|
        out.map( "tag:ruby.yaml.org,2002:object:#{ @class }", to_yaml_style ) do |map|
            @ivars.each do |k,v|
                map.add( k, v )
            end
        end
    end
end