Class: Rhino::RestrictableContextFactory
- Inherits:
-
ContextFactory
- Object
- Rhino::RestrictableContextFactory
- Defined in:
- lib/rhino/context.rb
Overview
:nodoc:
Defined Under Namespace
Classes: Context
Constant Summary collapse
- @@instance =
nil
Class Method Summary collapse
Instance Method Summary collapse
-
#doTopCall(callable, context, scope, this, args) ⇒ Object
protected Object doTopCall(Callable callable, Context context, Scriptable scope, Scriptable thisObj, Object[] args).
-
#makeContext ⇒ Object
protected Context makeContext().
-
#observeInstructionCount(context, count) ⇒ Object
protected void observeInstructionCount(Context context, int instructionCount).
Class Method Details
.instance ⇒ Object
331 332 333 |
# File 'lib/rhino/context.rb', line 331 def self.instance @@instance ||= new end |
Instance Method Details
#doTopCall(callable, context, scope, this, args) ⇒ Object
protected Object doTopCall(Callable callable, Context context,
Scriptable scope, Scriptable thisObj, Object[] args)
347 348 349 350 |
# File 'lib/rhino/context.rb', line 347 def doTopCall(callable, context, scope, this, args) context.reset! if context.is_a?(Context) super end |