Method: Immunio::LuaVM#create_object

Defined in:
lib/immunio/vm.rb

#create_object(object) ⇒ Object



211
212
213
214
215
216
217
# File 'lib/immunio/vm.rb', line 211

def create_object(object)
  return object if object.is_a?(Rufus::Lua::Ref)

  lua_call do
    @pass_function.call(object)
  end
end