Class: Orientdb4r::Utils::Proxy
- Inherits:
-
Object
- Object
- Orientdb4r::Utils::Proxy
- Defined in:
- lib/orientdb4r/utils.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target, context) ⇒ Proxy
constructor
A new instance of Proxy.
- #proxy(&block) ⇒ Object
Constructor Details
#initialize(target, context) ⇒ Proxy
Returns a new instance of Proxy.
75 76 77 78 |
# File 'lib/orientdb4r/utils.rb', line 75 def initialize(target, context) @target = target @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
73 74 75 |
# File 'lib/orientdb4r/utils.rb', line 73 def context @context end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
73 74 75 |
# File 'lib/orientdb4r/utils.rb', line 73 def target @target end |
Instance Method Details
#proxy(&block) ⇒ Object
80 81 82 |
# File 'lib/orientdb4r/utils.rb', line 80 def proxy(&block) block.call end |