module Sinatra::Twilio
Public Class Methods
registered(app)
click to toggle source
# File lib/sinatra/twilio.rb, line 20 def self.registered(app) app.helpers Helpers end
Public Instance Methods
respond(route, conditions = {}, &block)
click to toggle source
# File lib/sinatra/twilio.rb, line 9 def respond(route, conditions = {}, &block) action = Proc.new do twilio = Response.new(self) twilio.instance_eval &block if block_given? twilio.respond end get route, conditions, &action post route, conditions, &action end