Sha256: b0d801ca1196bcdadbbcaf629741891d71ba4c31d0ad217c4ba2752092d1d452
Contents?: true
Size: 912 Bytes
Versions: 1
Compression:
Stored size: 912 Bytes
Contents
module Rad module Filters inherit Callbacks module ClassMethods def before *args, &block opt = args.extract_options! if block set_callback :action, :before, opt, &block else args.each{|executor| set_callback :action, :before, executor, opt} end end def around *args, &block opt = args.extract_options! if block set_callback :action, :around, opt, &block else args.each{|executor| set_callback :action, :around, executor, opt} end end def after *args, &block opt = args.extract_options! if block set_callback :action, :after, opt, &block else args.each{|executor| set_callback :action, :after, executor, opt} end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rad_core-0.0.13 | lib/rad/support/filters.rb |