Module: AsyncObserver::Extensions::ClassMethods

Defined in:
lib/async_observer/extend.rb

Instance Method Summary collapse

Instance Method Details

#async_method(method, options = {}) ⇒ Object



38
39
40
41
42
43
# File 'lib/async_observer/extend.rb', line 38

def async_method(method, options = {})
  methods_async_options = class_variable_get(:@@methods_async_options)
  if options
    class_variable_set(:@@methods_async_options, methods_async_options.merge(method.to_sym => options))
  end
end