Class: RbYAML::CommonDumper
Direct Known Subclasses
Instance Attribute Summary collapse
-
#emitter ⇒ Object
Returns the value of attribute emitter.
-
#representer ⇒ Object
Returns the value of attribute representer.
-
#resolver ⇒ Object
Returns the value of attribute resolver.
-
#serializer ⇒ Object
Returns the value of attribute serializer.
Instance Method Summary collapse
-
#initialize(stream, opts = {}) ⇒ CommonDumper
constructor
A new instance of CommonDumper.
Constructor Details
#initialize(stream, opts = {}) ⇒ CommonDumper
Returns a new instance of CommonDumper.
10 11 12 13 14 15 16 17 |
# File 'lib/rbyaml/dumper.rb', line 10 def initialize(stream,opts={}) super() opts = DEFAULTS.merge(opts) @emitter = opts[:Emitter].new(stream,opts) @resolver = opts[:Resolver].new @serializer = opts[:Serializer].new(@emitter,@resolver,opts) @representer = opts[:Representer].new(@serializer,opts) end |
Instance Attribute Details
#emitter ⇒ Object
Returns the value of attribute emitter.
9 10 11 |
# File 'lib/rbyaml/dumper.rb', line 9 def emitter @emitter end |
#representer ⇒ Object
Returns the value of attribute representer.
9 10 11 |
# File 'lib/rbyaml/dumper.rb', line 9 def representer @representer end |
#resolver ⇒ Object
Returns the value of attribute resolver.
9 10 11 |
# File 'lib/rbyaml/dumper.rb', line 9 def resolver @resolver end |
#serializer ⇒ Object
Returns the value of attribute serializer.
9 10 11 |
# File 'lib/rbyaml/dumper.rb', line 9 def serializer @serializer end |