amirka-async-fu 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/async_fu.rb +3 -3
- data/test/test-1.rb +6 -0
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/async_fu.rb
CHANGED
@@ -9,13 +9,13 @@ class AsyncFu
|
|
9
9
|
end
|
10
10
|
}
|
11
11
|
end
|
12
|
-
def method_missing(name, *args)
|
12
|
+
def method_missing(name, *args, &block)
|
13
13
|
if @class.respond_to?(name)
|
14
14
|
Thread.new{
|
15
|
-
@class.send name, *args
|
15
|
+
@class.send name, *args, &block
|
16
16
|
}
|
17
17
|
else
|
18
|
-
@class.send name, *args
|
18
|
+
@class.send name, *args, &block
|
19
19
|
end
|
20
20
|
end
|
21
21
|
def exit
|
data/test/test-1.rb
CHANGED