module Lab42::AOP
Constants
- VERSION
Private Instance Methods
_scopes()
click to toggle source
# File lib/lab42/aop.rb, line 61 def _scopes; @__scopes__ ||= [] end
after(*args, **kwds, &blk)
click to toggle source
# File lib/lab42/aop.rb, line 16 def after *args, **kwds, &blk if blk After.with_block( self, *args, **kwds, &blk ) else After.with_methods( self, *args, **kwds ) end end
around(*args, **kwds, &blk)
click to toggle source
# File lib/lab42/aop.rb, line 23 def around *args, **kwds, &blk if blk Around.with_block( self, *args, **kwds, &blk ) else Around.with_methods( self, *args, **kwds ) end end
before(*args, **kwds, &blk)
click to toggle source
# File lib/lab42/aop.rb, line 30 def before *args, **kwds, &blk if blk Before.with_block( self, *args, **kwds, &blk ) else Before.with_methods( self, *args, **kwds ) end end
param_filter(*args, **kwds, &blk)
click to toggle source
def concern_scope &blk
_scopes << Module.new(&blk) # Just to know the methods defined module_eval &blk
ensure
_scopes.pop
end
# File lib/lab42/aop.rb, line 45 def param_filter *args, **kwds, &blk if blk ParamFilter.with_block( self, *args, **kwds, &blk ) else ParamFilter.with_methods( self, *args, **kwds ) end end
result_filter(*args, **kwds, &blk)
click to toggle source
# File lib/lab42/aop.rb, line 53 def result_filter *args, **kwds, &blk if blk ResultFilter.with_block( self, *args, **kwds, &blk ) else ResultFilter.with_methods( self, *args, **kwds, &blk ) end end