Permalink
Browse files

Fixed RI-issue with YAML

git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@2374 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
1 parent 569c09b commit 5853771975e96f396fdf2c6e7f3cc2c7ed7551b6 @olabini olabini committed Oct 24, 2006
Showing with 1 addition and 1 deletion.
  1. BIN lib/jvyaml.jar
  2. +1 −1 src/org/jruby/RubyYAML.java
View
Binary file not shown.
@@ -473,7 +473,7 @@ public IRubyObject method6(ThreadContext tc, IRubyObject self, IRubyObject[] arg
return args[0].callMethod("scalar",new IRubyObject[]{rt.newString("tag:yaml.org,2002:binary"),rt.newArray(self).callMethod("pack",rt.newString("m")),rt.newString("|")});
}
if(((List)self.callMethod("to_yaml_properties")).isEmpty()) {
- return args[0].callMethod("scalar",new IRubyObject[]{self.callMethod("taguri"),self,self.toString().charAt(0) == ':' ? rt.newString("\"") : self.callMethod("to_yaml_style")});
+ return args[0].callMethod("scalar",new IRubyObject[]{self.callMethod("taguri"),self,self.toString().startsWith(":") ? rt.newString("\"") : self.callMethod("to_yaml_style")});
}
Map mep = (Map)(new RubyHash(self.getRuntime()));

0 comments on commit 5853771

Please sign in to comment.