Module: Sinatra::PubSub
- Extended by:
- Helpers
- Defined in:
- lib/sinatra/pubsub.rb,
lib/sinatra/pubsub/app.rb,
lib/sinatra/pubsub/redis.rb,
lib/sinatra/pubsub/stream.rb,
lib/sinatra/pubsub/helpers.rb,
lib/sinatra/pubsub/version.rb
Defined Under Namespace
Modules: Helpers, Redis Classes: App, Stream
Constant Summary collapse
- VERSION =
"0.0.4"
Class Method Summary collapse
Methods included from Helpers
publish, publish_all, subscribe
Class Method Details
.registered(app) ⇒ Object
12 13 14 15 16 |
# File 'lib/sinatra/pubsub.rb', line 12 def self.registered(app) app.use App app.helpers Helpers subscribe end |
.set(*args) ⇒ Object
18 19 20 |
# File 'lib/sinatra/pubsub.rb', line 18 def self.set(*args) App.set(*args) end |