From a2c0c115fc7c90c5a59ef941d2bbd6a6627f1b21 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 28 Sep 2009 22:08:47 -0700 Subject: changing initialize to sensible defaults --- lib/psych/nodes/scalar.rb | 2 +- test/visitors/test_emitter.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/psych/nodes/scalar.rb b/lib/psych/nodes/scalar.rb index b84e0ed..fac4d69 100644 --- a/lib/psych/nodes/scalar.rb +++ b/lib/psych/nodes/scalar.rb @@ -29,7 +29,7 @@ module Psych # The style of this scalar attr_accessor :style - def initialize value, anchor = nil, tag = nil, plain = true, quoted = true, style = ANY + def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY super() @value = value @anchor = anchor diff --git a/test/visitors/test_emitter.rb b/test/visitors/test_emitter.rb index 3c93cc7..4361444 100644 --- a/test/visitors/test_emitter.rb +++ b/test/visitors/test_emitter.rb @@ -25,7 +25,7 @@ module Psych def test_scalar s = Nodes::Stream.new doc = Nodes::Document.new - scalar = Nodes::Scalar.new 'hello' + scalar = Nodes::Scalar.new 'hello world' doc.children << scalar s.children << doc -- cgit v1.2.3