method

new

v1_9_3_125 - Show latest stable - Class: Psych::Visitors::Emitter
new(io, options = {})
public

No documentation available.

# File ext/psych/lib/psych/visitors/emitter.rb, line 4
      def initialize io, options = {}
        @handler = Psych::Emitter.new io
        @handler.indentation = options[:indentation] if options[:indentation]
        @handler.canonical = options[:canonical] if options[:canonical]
        @handler.line_width = options[:line_width] if options[:line_width]
      end