Module: SimpleMethodCallback::ClassMethods
- Defined in:
- lib/simple_method_callback.rb
Class Method Summary collapse
Class Method Details
.extended(sub) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/simple_method_callback.rb', line 37 def self.extended(sub) sub.class_variable_get('@@around_method_list').map(&:to_sym).each do |am| sub.class_variable_get('@@around_only_method_list').map(&:to_sym).each do |om| sub.set_callback om, :around, am end end end |