Sha256: dca3d74fc1e7d82086448b64b842d7da9017e58abeb7b50c51f6f47941a03de7
Contents?: true
Size: 347 Bytes
Versions: 1
Compression:
Stored size: 347 Bytes
Contents
module Waffle class Base def initialize(strategy = nil) @strategy = strategy end def publish(flow = 'events', message = '') begin @strategy.publish flow, message rescue puts 'Hello!' end end def subscribe(flow = '', &block) @strategy.subscribe flow, &block end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
waffle-0.1.2 | lib/waffle/base.rb |