Sha256: 518285df50b033d4fb551d9bd7477427e7972f6194dd7d0f3e7fa9fe0542936d
Contents?: true
Size: 752 Bytes
Versions: 1
Compression:
Stored size: 752 Bytes
Contents
class TestSubscriber attr_accessor :responded def initialize(event) Flirt.subscribe self, event, with: :respond end def respond(event_data) self.responded = event_data end end class TestListener attr_accessor :responded def initialize(event) Flirt.listen self, event, with: :respond end def respond(event_data) self.responded = event_data end end class TestInstanceSubscriber include Flirt::Listener def initialize(event, callback) subscribe_to event, with: callback end end class TestInstanceListener include Flirt::Listener attr_accessor :responded def initialize(event, callback) listen_to event, with: callback end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flirt-0.0.1 | spec/flirt/flirt_test_classes.rb |