daitai 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/daitai/concat.rb +1 -16
- data/lib/daitai/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0eef01b5a0d60007fb1c642b7c98e0044fa03b67e1eeb178018c8c76af73b92
|
|
4
|
+
data.tar.gz: d6e31f441847c9783b97465e7a3431d23976518ad6e18a1e99c75f11ef73ce34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8569685ae7960b9e15e9faf562dc9891bf42597581e4283a14bf92812995ce313a9644d9929bfe917a28f736477ee13bc7dd6811f94882fb4088e8ab6299b356
|
|
7
|
+
data.tar.gz: 945ad40b819ef067d906e1da1e1ce52c4f927b30ce0f7a23d333c2bbca728efcaff282df0ee82e83cb06b7c7293e530fe5c991a9cead2127935ad4b880b1d032
|
data/Gemfile.lock
CHANGED
data/lib/daitai/concat.rb
CHANGED
|
@@ -3,22 +3,7 @@
|
|
|
3
3
|
module Daitai
|
|
4
4
|
module Concat
|
|
5
5
|
def concat
|
|
6
|
-
|
|
7
|
-
case x
|
|
8
|
-
when String then string_concat(x, y)
|
|
9
|
-
else default_concat(x, y)
|
|
10
|
-
end
|
|
11
|
-
end.curry
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
private
|
|
15
|
-
|
|
16
|
-
def string_concat(x, y)
|
|
17
|
-
x + y
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
def default_concat(x, y)
|
|
21
|
-
x.concat(y)
|
|
6
|
+
->(x, y) { x + y }.curry
|
|
22
7
|
end
|
|
23
8
|
end
|
|
24
9
|
end
|
data/lib/daitai/version.rb
CHANGED