kleisli-run 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/kleisli/run.rb +9 -8
- data/lib/kleisli/run/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2JhMWVjNjIwZTVjMDllNGQ5MmQ5NmIxNjI5ZTE5YTEwYzI0M2UwNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzFmZjBkZWJiYzQ0MmQ0NzhhMjNkNDUwNWQ1ODc1MDAyZDRlOWFjNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmYwMDc2N2QyYWIyMjFhYzU0MTE2MzMxYTMxYzQ5MThlYmMwYTY4YmNlZTg4
|
10
|
+
MDYyYzY1MmI1NmM1MTc5NTZkZDRiMWMwMWQ2MGM5OGRiZGI1OWE2ZmYwZTY3
|
11
|
+
ODcyOWQwNGVmZjRjZDAyY2Q0OGFiODJhYTRiMzU2NzI2NDAwZDY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MmI2NzI3MTUxOTA1YmUwNTEzNTdhNDU2NzY1MTEyMDYxYTUzNWRlM2M3NWQ2
|
14
|
+
YjE1ZGIxMTUxYTI1NjNkMDQ3NGUxNGQ1ZDRmM2E5ZGZkYjA0OTc0OThlNzIz
|
15
|
+
ZDUxMzI3OWUwNzRlY2I4ZTllYWIzYjk4ZTg1ZGY5MmYxZDQ0Yzg=
|
data/lib/kleisli/run.rb
CHANGED
@@ -39,16 +39,17 @@ module Kleisli
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def method_missing(m, *args)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
if args.empty?
|
42
|
+
case
|
43
|
+
when @o_self.respond_to?(m)
|
44
|
+
@o_self.send(m, *args)
|
45
|
+
when args.first.kind_of?(Hash) && args.first[:from] && args.size == 1
|
46
|
+
extract(m, args.first[:from])
|
47
|
+
when args.empty?
|
49
48
|
get_value(m)
|
50
|
-
|
49
|
+
when m.to_s =~ /\=$/
|
51
50
|
set_value(m, args.first)
|
51
|
+
else
|
52
|
+
@o_self.send(m, *args)
|
52
53
|
end
|
53
54
|
end
|
54
55
|
end
|
data/lib/kleisli/run/version.rb
CHANGED