summaryrefslogtreecommitdiff
path: root/ruby_2_2/ext/psych/lib/psych/json/tree_builder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ruby_2_2/ext/psych/lib/psych/json/tree_builder.rb')
-rw-r--r--ruby_2_2/ext/psych/lib/psych/json/tree_builder.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/ruby_2_2/ext/psych/lib/psych/json/tree_builder.rb b/ruby_2_2/ext/psych/lib/psych/json/tree_builder.rb
new file mode 100644
index 0000000000..b799c93f58
--- /dev/null
+++ b/ruby_2_2/ext/psych/lib/psych/json/tree_builder.rb
@@ -0,0 +1,12 @@
+require 'psych/json/yaml_events'
+
+module Psych
+ module JSON
+ ###
+ # Psych::JSON::TreeBuilder is an event based AST builder. Events are sent
+ # to an instance of Psych::JSON::TreeBuilder and a JSON AST is constructed.
+ class TreeBuilder < Psych::TreeBuilder
+ include Psych::JSON::YAMLEvents
+ end
+ end
+end