Permalink
Browse files

Dropping an eval() call for send().

  • Loading branch information...
1 parent 9b77daa commit fb16a2f9bc45e22aa2b04d1d71ecb19fa3ea3c42 @JEG2 committed Oct 14, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rufus/tokyo/cabinet/abstract.rb
@@ -640,8 +640,8 @@ def do_call_misc (function, list_pointer)
def libcall (lib_method, *args)
- (eval(%{ lib.#{lib_method}(@db, *args) }) == 1) or \
- raise TokyoError.new("call to #{lib_method} failed")
+ raise TokyoError.new("call to #{lib_method} failed") \
+ unless lib.send(lib_method, @db, *args) == 1
end
end

1 comment on commit fb16a2f

I had made it this way since the jruby I was using at the time wasn't happy with the send. I have just test with the send and jruby 1.3.1 and it works just fine. Thanks !

Please sign in to comment.