Class: ProxyPacRb::Runtime::Context
- Inherits:
-
Object
- Object
- ProxyPacRb::Runtime::Context
- Includes:
- Encoding
- Defined in:
- lib/proxy_pac_rb/runtime.rb
Overview
Context
Direct Known Subclasses
ProxyPacRb::RubyRacerRuntime::Context, ProxyPacRb::RubyRhinoRuntime::Context
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
Instance Method Summary collapse
- #call(_properties, *_args) ⇒ Object
- #eval(_source, _options = {}) ⇒ Object
- #exec(_source, _options = {}) ⇒ Object
- #include(environment) ⇒ Object
-
#initialize(_runtime, _source = '') ⇒ Context
constructor
A new instance of Context.
Methods included from Encoding
Constructor Details
#initialize(_runtime, _source = '') ⇒ Context
Returns a new instance of Context.
17 18 |
# File 'lib/proxy_pac_rb/runtime.rb', line 17 def initialize(_runtime, _source = '') end |
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context.
9 10 11 |
# File 'lib/proxy_pac_rb/runtime.rb', line 9 def context @context end |
Instance Method Details
#call(_properties, *_args) ⇒ Object
28 29 30 |
# File 'lib/proxy_pac_rb/runtime.rb', line 28 def call(_properties, *_args) raise NotImplementedError end |
#eval(_source, _options = {}) ⇒ Object
24 25 26 |
# File 'lib/proxy_pac_rb/runtime.rb', line 24 def eval(_source, = {}) raise NotImplementedError end |
#exec(_source, _options = {}) ⇒ Object
20 21 22 |
# File 'lib/proxy_pac_rb/runtime.rb', line 20 def exec(_source, = {}) raise NotImplementedError end |
#include(environment) ⇒ Object
11 12 13 14 15 |
# File 'lib/proxy_pac_rb/runtime.rb', line 11 def include(environment) environment.available_methods.each do |name| context[name] = environment.method(name) end end |