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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWU4ODZmODNhMmU3MWI2OWZmYmExMWU5NzM1YzlmMGMzMThmY2Y1Yw==
4
+ Y2JhMWVjNjIwZTVjMDllNGQ5MmQ5NmIxNjI5ZTE5YTEwYzI0M2UwNQ==
5
5
  data.tar.gz: !binary |-
6
- YTY4ZGY5OTRhYjQ3OGRhYTNiN2MxMzRiZDE4ZjIyOWY4ODY2ZmEyOA==
6
+ NzFmZjBkZWJiYzQ0MmQ0NzhhMjNkNDUwNWQ1ODc1MDAyZDRlOWFjNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2U1Mzc4ZTQ4NTIzODRhOGMyNDgyYWMxYThlMzg4YWNmMTVkZmMxNjg5Y2Uy
10
- ZWVhYmYzMzhiMjllMGM2OTljYTc2OWIzYTVhOTgzMzNmODhhYmMwNjM0ZTEw
11
- NTQ2NDYyYjVmNzI4MTAzZjNiMTk0ZDQxNjhiNWVmZDc0NDEzMjA=
9
+ NmYwMDc2N2QyYWIyMjFhYzU0MTE2MzMxYTMxYzQ5MThlYmMwYTY4YmNlZTg4
10
+ MDYyYzY1MmI1NmM1MTc5NTZkZDRiMWMwMWQ2MGM5OGRiZGI1OWE2ZmYwZTY3
11
+ ODcyOWQwNGVmZjRjZDAyY2Q0OGFiODJhYTRiMzU2NzI2NDAwZDY=
12
12
  data.tar.gz: !binary |-
13
- NzJhNTMwNmRkYzMxMDVlYTU5YmI0NzFhNjkzNmVlYWY4OGEyNDk1NGUwNmYw
14
- ZDY1YmUxZTNlOWRkMDU2YmE0ZTA2MWIyNDNjYWQ1OWRjMmQ4NGY1ODY1YmE4
15
- YTQ2MjIxNTU5NTZjYjA4MGIyYWE1NjcyMzUyZThjMmRjYzQwZTY=
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
- if @o_self.respond_to?(m)
43
- return @o_self.send(m, *args)
44
- end
45
- if args.first.kind_of?(Hash) && args.first[:from] && args.size == 1
46
- return extract(m, args.first[:from])
47
- end
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
- else
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
@@ -1,5 +1,5 @@
1
1
  module Kleisli
2
2
  module Run
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kleisli-run
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Zeligson