Module: Sinatra::Mixpanel

Defined in:
lib/sinmetrics/mixpanel.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



89
90
91
# File 'lib/sinmetrics/mixpanel.rb', line 89

def self.registered app
  app.helpers MixpanelHelper
end

Instance Method Details

#mixpanel(&blk) ⇒ Object



85
86
87
# File 'lib/sinmetrics/mixpanel.rb', line 85

def mixpanel &blk
  MixpanelSettings.new(self, &blk)
end