require 'v8' class Object # From now on each object can be easily converted to V8::* object # using #to_v8 method. include V8::Cast # Returns true when given object is reflected from within V8. def v8? kind_of?(V8::Data) end end # Object