summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-28 22:08:47 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-28 22:08:47 -0700
commita2c0c115fc7c90c5a59ef941d2bbd6a6627f1b21 (patch)
tree96fd22f7bea54b277166ed7eed99ac040404a4e0
parent0f174ee584cd1755819becf1da74e0c010049542 (diff)
downloadpsych-a2c0c115fc7c90c5a59ef941d2bbd6a6627f1b21.zip
changing initialize to sensible defaults
-rw-r--r--lib/psych/nodes/scalar.rb2
-rw-r--r--test/visitors/test_emitter.rb2
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