This looks like it might be caused by the Padrino reloader getting confused when it reloads your thing.rb
file, causing Ruby to look for V8
in the Thing
namespace.
Try explicitly specifying V8
is in the top level using the ::
prefix:
def self.ctx; @@ctx ||= ::V8::Context.new; end;