Sha256: d88cfb8e8df928cdafb97423d33ae264117106a3e15c7209ad66e651139eea62
Contents?: true
Size: 281 Bytes
Versions: 3
Compression:
Stored size: 281 Bytes
Contents
$:.unshift File.expand_path("../../lib", __FILE__) require "signal" class Arguments include Signal end class MyListener def on_args(a, b) puts a, b end end args = Arguments.new args.on(:args) {|a, b| puts a, b } args.listeners << MyListener.new args.emit(:args, 1, 2)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
signal-1.1.0 | examples/arguments.rb |
signal-0.1.1 | examples/arguments.rb |
signal-0.1.0 | examples/arguments.rb |