LRH 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LRH.rb +14 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a71324a2235eb4f95955e0dadc3a0394c13376fc
|
4
|
+
data.tar.gz: 9e85932019f46a448228e0ed11d15873986ecfe4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6da49af00d64fd6eefa93908818612a45be17c7f5d111191d152ae53f0f8ec1dbc5005ad594ec44eed7d4d76fb16dc488355039306966eef02a8b7148e4d6be
|
7
|
+
data.tar.gz: a4e91ed5a8ef26d8d4f53da5004c4c29ecc877c5361fccff5dea3bc0f69e2258a24e89d9558022523995478b4f876e921d012b0312db141f1256676b7543d9f1
|
data/LRH.rb
CHANGED
@@ -81,6 +81,20 @@ class ListerJoiner < IOAble
|
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
|
+
class InstanceJoiner < ListerJoiner
|
85
|
+
def initialize(block)
|
86
|
+
@block = block
|
87
|
+
end
|
88
|
+
|
89
|
+
def join(lister_output)
|
90
|
+
return @block.call(lister_output)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
def joiner(&block)
|
95
|
+
return InstanceJoiner.new(block)
|
96
|
+
end
|
97
|
+
|
84
98
|
class MultiLister < Lister
|
85
99
|
def initialize(main_lister, joiner)
|
86
100
|
@basic_lister = main_lister
|