Class: V8::C::Context

Inherits:
Object show all
Defined in:
lib/v8/context.rb

Instance Method Summary collapse

Instance Method Details

#enterObject



95
96
97
98
99
100
101
102
103
104
105
106
107
108
# File 'lib/v8/context.rb', line 95

def enter
  if block_given?
    if IsEntered()
      yield(self)
    else
      Enter()
      begin
        yield(self)
      ensure
        Exit()
      end
    end
  end
end