Sha256: 9b5d1e665d1719e41fd8d23c033a61d1cbb6e5f6247ded2d06ca8449765dc14c
Contents?: true
Size: 281 Bytes
Versions: 5
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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
signal-1.0.0 | examples/arguments.rb |
signal-0.3.0 | examples/arguments.rb |
signal-0.2.2 | examples/arguments.rb |
signal-0.2.1 | examples/arguments.rb |
signal-0.2.0 | examples/arguments.rb |