Module: Rad::Filters::ClassMethods
- Defined in:
- lib/rad/_support/filters.rb
Instance Method Summary collapse
Instance Method Details
#after(*args, &block) ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/rad/_support/filters.rb', line 23 def after *args, &block opt = args. if block set_callback :action, :after, opt, &block else args.each{|executor| set_callback :action, :after, executor, opt} end end |
#around(*args, &block) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/rad/_support/filters.rb', line 14 def around *args, &block opt = args. if block set_callback :action, :around, opt, &block else args.each{|executor| set_callback :action, :around, executor, opt} end end |
#before(*args, &block) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/rad/_support/filters.rb', line 5 def before *args, &block opt = args. if block set_callback :action, :before, opt, &block else args.each{|executor| set_callback :action, :before, executor, opt} end end |