Skip to content

Commit

Permalink
Fixed RI-issue with YAML
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.codehaus.org/jruby/trunk@2374 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
olabini committed Oct 24, 2006
1 parent e17553c commit 04aa741
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified jruby/lib/jvyaml.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion jruby/src/org/jruby/RubyYAML.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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("|")}); 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()) { 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())); Map mep = (Map)(new RubyHash(self.getRuntime()));
Expand Down

0 comments on commit 04aa741

Please sign in to comment.