Class: Orientdb4r::Utils::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/orientdb4r/utils.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contextObject (readonly)

Returns the value of attribute context.



73
74
75
# File 'lib/orientdb4r/utils.rb', line 73

def context
  @context
end

#targetObject (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