That's a really good idea. I did not know that this method existed.
After a small test: The code is much cleaner and about 300x faster.
RLua is Ruby to Lua bindings library that features nearly complete coverage of Lua C API, seamless translation of Lua and Ruby objects into each other, calling Lua functions from Ruby and vice versa.
Code: Select all
local class = require '30log-master/30log'