Class: Smooth::Event::Proxy

Inherits:
Object show all
Defined in:
lib/smooth/event/proxy.rb

Class Method Summary collapse

Class Method Details

.on(*args, &block) ⇒ Object



2
3
4
# File 'lib/smooth/event/proxy.rb', line 2

def self.on(*args, &block)
  Smooth::Event.send(:subscribe_to, *args, &block)
end

.trigger(*args, &block) ⇒ Object



6
7
8
# File 'lib/smooth/event/proxy.rb', line 6

def self.trigger(*args, &block)
  Smooth::Event.send(:track_event, *args, &block)
end