Module: Thaum::Action::ClassMethods
- Defined in:
- lib/thaum/action.rb
Instance Method Summary collapse
Instance Method Details
#method_added(name) ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/thaum/action.rb', line 18 def method_added(name) super return if name == :initialize return unless public_method_defined?(name) return if singleton_class.method_defined?(name, false) define_singleton_method(name) do |*args, **kwargs| Thaum::Action.pool.post { new.public_send(name, *args, **kwargs) } end end |