Sha256: 66ec9640ea32dbfcce7f23fd9d9f125431495d8719febc634ecc4efc80705741

Contents?: true

Size: 284 Bytes

Versions: 2

Compression:

Stored size: 284 Bytes

Contents

require 'v8'

class Object
  # From now on each object can be easily converted to <tt>V8::*</tt> object
  # using <tt>#to_v8</tt> method. 
  include V8::Cast

  # Returns <tt>true</tt> when given object is reflected from within V8.
  def v8?
    kind_of?(V8::Data)
  end
end # Object

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mustang-0.1.1 lib/core_ext/object.rb
mustang-0.1.0 lib/core_ext/object.rb