functor 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/functor.rb +2 -2
- metadata +2 -2
data/lib/functor.rb
CHANGED
@@ -46,7 +46,7 @@ class Functor
|
|
46
46
|
# Recursively redefine The Method using the newest and previous incarnations
|
47
47
|
define_method( name ) do | *args |
|
48
48
|
match_args = with_self ? [self] + args : args
|
49
|
-
sig = match_args
|
49
|
+
sig = match_args
|
50
50
|
if meth = mc[3][sig] # check caches from top down
|
51
51
|
meth[0].bind(self).call(*args)
|
52
52
|
elsif meth = mc[2][sig]
|
@@ -99,4 +99,4 @@ class Functor
|
|
99
99
|
end if args.length == pattern.length
|
100
100
|
end
|
101
101
|
|
102
|
-
end
|
102
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: functor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Yoder
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date:
|
14
|
+
date: 2010-05-16 00:00:00 -07:00
|
15
15
|
default_executable:
|
16
16
|
dependencies: []
|
17
17
|
|