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.



54
55
56
57
# File 'lib/orientdb4r/utils.rb', line 54

def initialize(target, context)
  @target = target
  @context = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



52
53
54
# File 'lib/orientdb4r/utils.rb', line 52

def context
  @context
end

#targetObject (readonly)

Returns the value of attribute target.



52
53
54
# File 'lib/orientdb4r/utils.rb', line 52

def target
  @target
end

Instance Method Details

#proxy(&block) ⇒ Object



59
60
61
# File 'lib/orientdb4r/utils.rb', line 59

def proxy(&block)
  block.call
end