Permalink
Browse files

specialy handle jruby and json

  • Loading branch information...
1 parent 8ee9a4d commit 0ac91f962233d4fce4b9c875ca9a6b4dcc02a092 Sam Pullara committed Apr 18, 2012
@@ -50,6 +50,14 @@ public boolean apply(@Nullable Object[] input) {
}
});
return createWrapper(scopeIndex, wrappers, guards, MAP_METHOD, new Object[]{rs});
+ } else {
+ guards.add(new Predicate<Object[]>() {
+ @Override
+ public boolean apply(@Nullable Object[] input) {
+ assert input != null;
+ return !((RubyHash)input[scopeIndex]).containsKey(rs);
+ }
+ });
}
}
if (scope instanceof RubyObject) {
@@ -64,6 +64,8 @@ public static Object toObject(final JsonNode node) {
put(next.getKey(), o);
}
}};
+ } else if (node.isBoolean()) {
+ return node.getBooleanValue();
} else if (node.isNull()) {
return null;
} else {

0 comments on commit 0ac91f9

Please sign in to comment.