mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
a1e257ec48
* ext/syck/rubyext.c: Emitter class. * lib/yaml.rb: Load Syck emitter, if available. * lib/yaml/stream.rb: ditto. * lib/yaml/baseemitter.rb: underlying class for all emitters. * lib/yaml/rubytypes.rb: use BaseEmitter abstraction. * lib/yaml/emitter.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
27 lines
433 B
Ruby
27 lines
433 B
Ruby
#
|
|
# YAML::Syck module
|
|
# .. glues syck and yaml.rb together ..
|
|
#
|
|
require 'syck'
|
|
require 'yaml/basenode'
|
|
require 'yaml/baseemitter'
|
|
|
|
module YAML
|
|
module Syck
|
|
|
|
#
|
|
# Mixin BaseNode functionality
|
|
#
|
|
class Node
|
|
include YAML::BaseNode
|
|
end
|
|
|
|
#
|
|
# Mixin BaseEmitter functionality
|
|
#
|
|
class Emitter
|
|
include YAML::BaseEmitter
|
|
end
|
|
|
|
end
|
|
end
|