Ruby sandboxing vs. integrating a scripting language

后端 未结 2 1337
Happy的楠姐
Happy的楠姐 2021-02-05 13:03

I am currently working on a text-based game engine in Ruby, with the app separated into Ruby code in /lib and YAML data in /data, which is loaded when needed by the game. I want

2条回答
  •  一生所求
    2021-02-05 13:29

    You might consider using the Shikashi gem, which allows you to create sandboxes and define a whitelist of allowed method calls on individual objects.

提交回复
热议问题