efo_nelfo 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 +4 -4
- data/lib/efo_nelfo/array.rb +16 -1
- data/lib/efo_nelfo/v40/order/order.rb +1 -1
- data/lib/efo_nelfo/version.rb +1 -1
- 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: 2be2ec103dd949a5ec7dc352e3fd75b14037759f
|
4
|
+
data.tar.gz: 81fc193b3094f419feebd8c70d31164ca9b837a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2464557f24b9cbef36ec4019f3816b0873b7f9f40c140365f2d37465b97e1947274ab1acaff3b5bc63ef34941fbfd30a38b0cc6fb00decc8880e305c48aa88b
|
7
|
+
data.tar.gz: d65c80d75dec5d230ea5e12fc6659ed354ce077edaaef655f2e50ee4bbfb0b4a8a75893624b468ea45c7131288b974a1061a1cfaaa397b32019c9589ae7fc5a7
|
data/lib/efo_nelfo/array.rb
CHANGED
@@ -1,9 +1,24 @@
|
|
1
|
+
require 'forwardable'
|
2
|
+
|
1
3
|
module EfoNelfo
|
2
4
|
|
3
|
-
class Array
|
5
|
+
class Array
|
6
|
+
include Enumerable
|
7
|
+
extend Forwardable
|
8
|
+
|
9
|
+
def_delegators :@list, :each, :<<, :last
|
10
|
+
|
11
|
+
def initialize(*args)
|
12
|
+
@list = []
|
13
|
+
end
|
14
|
+
|
4
15
|
def to_a
|
5
16
|
map(&:to_a).flatten(1)
|
6
17
|
end
|
18
|
+
|
19
|
+
protected
|
20
|
+
attr_reader :list
|
21
|
+
|
7
22
|
end
|
8
23
|
|
9
24
|
end
|
data/lib/efo_nelfo/version.rb
CHANGED