Sha256: 2dd5f03f6ecbd2197e30d3fd811d54eee990e212e38eff5ff63eb9dcf9e2cc40
Contents?: true
Size: 362 Bytes
Versions: 3
Compression:
Stored size: 362 Bytes
Contents
# frozen_string_literal: true $LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "signal" class Status include Signal def ready! emit(:ready) end end status = Status.new status.before(:ready) { puts "Before the ready event!" } status.on(:ready) { puts "I'm ready!" } status.after(:ready) { puts "After the ready event!" } status.ready!
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
signal-1.3.1 | examples/blocks.rb |
signal-1.3.0 | examples/blocks.rb |
signal-1.2.0 | examples/blocks.rb |