Module: Orientdb4r::Aop2

Included in:
RestClient
Defined in:
lib/orientdb4r/utils.rb

Overview

TODO extend it to work with already defined methods (‘before :foo, :baz’ after method definition)

Defined Under Namespace

Modules: ClassMethods2

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

def self.included(base)
  base.extend ClassMethods2
  base.init_aop_extension
end

Instance Method Details

#aop_contextObject



76
77
78
# File 'lib/orientdb4r/utils.rb', line 76

def aop_context
  Thread.current[:aop2_context]
end

#aop_context=(ctx = {}) ⇒ Object



79
80
81
# File 'lib/orientdb4r/utils.rb', line 79

def aop_context=(ctx={})
  Thread.current[:aop2_context] = ctx
end