examples/readme/registry in cl-1.2.2 vs examples/readme/registry in cl-1.2.3
- old
+ new
@@ -1,12 +1,14 @@
#!/usr/bin/env ruby
$: << File.expand_path('lib')
module Cmd
class One < Cl::Cmd
+ register :one
end
class Two < Cl::Cmd
+ register :two
end
end
p Cl::Cmd[:one] # => Cmd::One
p Cl::Cmd[:two] # => Cmd::Two