Module: Fanli::Base::ClassMethods
- Defined in:
- lib/fanli/base.rb
Overview
Class Methods
Instance Method Summary collapse
Instance Method Details
#with(*args) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/fanli/base.rb', line 18 def with(*args) new(*args).tap do |business| Fanli.trigger( snikize(name), with: Fanli::Event.new( args: args, result: business.perform ) ) end end |