diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-28 22:08:47 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-28 22:08:47 -0700 |
commit | a2c0c115fc7c90c5a59ef941d2bbd6a6627f1b21 (patch) | |
tree | 96fd22f7bea54b277166ed7eed99ac040404a4e0 | |
parent | 0f174ee584cd1755819becf1da74e0c010049542 (diff) | |
download | psych-a2c0c115fc7c90c5a59ef941d2bbd6a6627f1b21.zip |
changing initialize to sensible defaults
-rw-r--r-- | lib/psych/nodes/scalar.rb | 2 | ||||
-rw-r--r-- | 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 |