summaryrefslogtreecommitdiff
path: root/ext/psych
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-08 16:10:10 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-08 16:10:10 +0000
commita5dec230451cfbfa5df77c2d9f7e8dc5d8c568e4 (patch)
treeb2bcfd08c314993ee617aa065546917623d103b3 /ext/psych
parent8d44c908cac7981e7e8d386c2095f3f559437e14 (diff)
* ext/psych/lib/psych/visitors/emitter.rb (initialize): line_width is
a valid option passed to the emitter. * test/psych/test_psych.rb: corresponding tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych')
-rw-r--r--ext/psych/lib/psych/visitors/emitter.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/psych/lib/psych/visitors/emitter.rb b/ext/psych/lib/psych/visitors/emitter.rb
index c84629f9d0..30db17612d 100644
--- a/ext/psych/lib/psych/visitors/emitter.rb
+++ b/ext/psych/lib/psych/visitors/emitter.rb
@@ -5,6 +5,7 @@ module Psych
@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
def visit_Psych_Nodes_Stream o