Sha256: 3ffdd72e87950b34f3eac79571df3955bf1024c9f97cb8980772056be7a6f997
Contents?: true
Size: 318 Bytes
Versions: 1
Compression:
Stored size: 318 Bytes
Contents
# frozen_string_literal: true $LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "voltage" class Arguments include Voltage 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voltage-0.1.0 | examples/arguments.rb |