Permalink
Browse files

Fixed RI-issue with YAML

git-svn-id: http://svn.codehaus.org/jruby/trunk@2374 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
1 parent e17553c commit 04aa741f7dc149c0c6fc642a972d7bab9b095bba @olabini olabini committed Oct 24, 2006
Showing with 1 addition and 1 deletion.
  1. BIN jruby/lib/jvyaml.jar
  2. +1 −1 jruby/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 04aa741

Please sign in to comment.