Class: MiniRacer::Isolate
- Inherits:
-
Object
- Object
- MiniRacer::Isolate
- Defined in:
- lib/mini_racer.rb
Instance Method Summary collapse
-
#initialize(snapshot = nil) ⇒ Isolate
constructor
A new instance of Isolate.
Constructor Details
#initialize(snapshot = nil) ⇒ Isolate
Returns a new instance of Isolate.
70 71 72 73 74 75 76 77 |
# File 'lib/mini_racer.rb', line 70 def initialize(snapshot = nil) unless snapshot.nil? || snapshot.is_a?(Snapshot) raise ArgumentError, "snapshot must be a Snapshot object, passed a #{snapshot.inspect}" end # defined in the C class init_with_snapshot(snapshot) end |