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) [BF #21]

Defined Under Namespace

Modules: ClassMethods2

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



92
93
94
95
# File 'lib/orientdb4r/utils.rb', line 92

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

Instance Method Details

#aop_contextObject



97
98
99
# File 'lib/orientdb4r/utils.rb', line 97

def aop_context
  Thread.current[:aop2_context]
end

#aop_context=(ctx = {}) ⇒ Object



100
101
102
# File 'lib/orientdb4r/utils.rb', line 100

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