summaryrefslogtreecommitdiff
path: root/ruby_2_2/ext/psych/lib/psych/json/stream.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ruby_2_2/ext/psych/lib/psych/json/stream.rb')
-rw-r--r--ruby_2_2/ext/psych/lib/psych/json/stream.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/ruby_2_2/ext/psych/lib/psych/json/stream.rb b/ruby_2_2/ext/psych/lib/psych/json/stream.rb
new file mode 100644
index 0000000000..fe2a6e9116
--- /dev/null
+++ b/ruby_2_2/ext/psych/lib/psych/json/stream.rb
@@ -0,0 +1,16 @@
+require 'psych/json/ruby_events'
+require 'psych/json/yaml_events'
+
+module Psych
+ module JSON
+ class Stream < Psych::Visitors::JSONTree
+ include Psych::JSON::RubyEvents
+ include Psych::Streaming
+ extend Psych::Streaming::ClassMethods
+
+ class Emitter < Psych::Stream::Emitter # :nodoc:
+ include Psych::JSON::YAMLEvents
+ end
+ end
+ end
+end