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
87 88 89 90 |
# File 'lib/orientdb4r/utils.rb', line 87 def self.included(base) base.extend ClassMethods2 base.init_aop_extension end |
Instance Method Details
#aop_context ⇒ Object
92 93 94 |
# File 'lib/orientdb4r/utils.rb', line 92 def aop_context Thread.current[:aop2_context] end |
#aop_context=(ctx = {}) ⇒ Object
95 96 97 |
# File 'lib/orientdb4r/utils.rb', line 95 def aop_context=(ctx={}) Thread.current[:aop2_context] = ctx end |