summaryrefslogtreecommitdiff
path: root/ruby_2_2/ext/psych/lib/psych/json/ruby_events.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ruby_2_2/ext/psych/lib/psych/json/ruby_events.rb')
-rw-r--r--ruby_2_2/ext/psych/lib/psych/json/ruby_events.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/ruby_2_2/ext/psych/lib/psych/json/ruby_events.rb b/ruby_2_2/ext/psych/lib/psych/json/ruby_events.rb
deleted file mode 100644
index 6b73249c06..0000000000
--- a/ruby_2_2/ext/psych/lib/psych/json/ruby_events.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-module Psych
- module JSON
- module RubyEvents # :nodoc:
- def visit_Time o
- formatted = format_time o
- @emitter.scalar formatted, nil, nil, false, true, Nodes::Scalar::DOUBLE_QUOTED
- end
-
- def visit_DateTime o
- visit_Time o.to_time
- end
-
- def visit_String o
- @emitter.scalar o.to_s, nil, nil, false, true, Nodes::Scalar::DOUBLE_QUOTED
- end
- alias :visit_Symbol :visit_String
- end
- end
-end