Class Methods
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