I have a problem with Shikashi when calling methods with more than one parameter:
class MyTest def self.think message end def self.say person,message end end include Shikashi privileges = Privileges.new privileges.allow_const_read "MyTest" privileges.object(MyTest).allow_all privileges.instances_of(MyTest).allow_all Sandbox.new.run(privileges, "MyTest.think('you')") Sandbox.new.run(privileges, "MyTest.say('you', 'hi there')")
It works
Sandbox.new.run(privileges, "MyTest.think('you')")
Here I get an ArgumentError: wrong number of arguments (1 to 2)
Sandbox.new.run(privileges, "MyTest.say('you', 'hi there')")
When I call him outside the Sandbox, everything is fine.
What's wrong? I am using ruby-1.9.3-p194
source share