LRH 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/LRH.rb +14 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9cc78ed20889896b5790c7f3502d30710c607c91
4
- data.tar.gz: 9acca681dcfc86e5325f899fce938a3995914297
3
+ metadata.gz: a71324a2235eb4f95955e0dadc3a0394c13376fc
4
+ data.tar.gz: 9e85932019f46a448228e0ed11d15873986ecfe4
5
5
  SHA512:
6
- metadata.gz: 9065ae354e5244d6738294e71fa07e3024416f3efd9ac34230a0c43e53888485123bb37dffae71488d43c5ca4a357111f79c0417679e8ca444e3ca29363b24e0
7
- data.tar.gz: e873e321e8e2176e9cfa10604d43b2c58b0b4d38da49f4b02c1b13ba70f780cdabf0ba237bbe6b34800146c51211fbbbe8d7557cee330ef42f87b51cb0b1ca76
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: LRH
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simone Scalabrino