Sha256: df4b8708551b01b76f6c1e829e6670577b5b6bb690446c4a51d1954ed4ac6895
Contents?: true
Size: 353 Bytes
Versions: 2
Compression:
Stored size: 353 Bytes
Contents
$:.unshift File.expand_path("../../lib", __FILE__) require "signal" class Contact include Signal attr_reader :name, :email def initialize(name, email) @name, @email = name, email end def output! emit(:output) end end contact = Contact.new("John Doe", "john@example.org") contact.on(:output) { puts name, email } contact.output!
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
signal-0.1.1 | examples/block_context.rb |
signal-0.1.0 | examples/block_context.rb |