clactive 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clactive.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a61cf63a468c524f1aaf045855af2f323bdee6db
|
4
|
+
data.tar.gz: 69349d247b600913285edd93c6abad76b765b101
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb492c9be1bc1edffbf8bc1dffc6a54b51bcaf70ed1a6318a126069f82b04bf5ae7e32a241dff1c3256c1e165fbdf8bdc7dd019c4cd04b8602c6d08abd1c471a
|
7
|
+
data.tar.gz: ba46ec8c3e74b0349828bac1ba320d16865ab4ef35ee77246950e575e394ead7b867341da16dab10a0b5f2a6779e22fc7161946bd9ca39cc1fb80eeab984c582
|
data/lib/clactive.rb
CHANGED
@@ -90,10 +90,11 @@ module CLActive
|
|
90
90
|
end
|
91
91
|
|
92
92
|
delegate = klass_delegate.new
|
93
|
+
eigen = class << self; self end
|
93
94
|
|
94
95
|
self.instance_eval do
|
95
96
|
[:subcmd, :option, :action].each do |api|
|
96
|
-
|
97
|
+
eigen.send(:define_method, api) do |*args, &block|
|
97
98
|
delegate.cmd.send(api, *args, &block)
|
98
99
|
end
|
99
100
|
end
|