Sha256: a958f2e6dd394d18e39fa2def3a1b3562cabfacb7f2f92b07bb53aa90b8d35a4
Contents?: true
Size: 395 Bytes
Versions: 5
Compression:
Stored size: 395 Bytes
Contents
$:.unshift File.expand_path('../../lib', __FILE__) require 'signal' class Status include Signal def ready! emit(:ready) end end class MyListener def before_ready puts 'Before the ready event!' end def on_ready puts "I'm ready!" end def after_ready puts 'After the ready event!' end end status = Status.new status.listeners << MyListener.new status.ready!
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
signal-1.0.0 | examples/listener.rb |
signal-0.3.0 | examples/listener.rb |
signal-0.2.2 | examples/listener.rb |
signal-0.2.1 | examples/listener.rb |
signal-0.2.0 | examples/listener.rb |