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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97e376baea5a1409ada5c0e664aa6f36f1ab5db2
4
- data.tar.gz: 8267ee4156e78ad48ce03eecfe70a277344d9f76
3
+ metadata.gz: 2be2ec103dd949a5ec7dc352e3fd75b14037759f
4
+ data.tar.gz: 81fc193b3094f419feebd8c70d31164ca9b837a1
5
5
  SHA512:
6
- metadata.gz: 8a01186e5ac6e1c0158c8782546962b9c3883e9452f3e80d5ba268e7d96bc5a3d4b35739091124d48696e1a12713a149d50fbcff2605eb3eeaef648ce9cb74f5
7
- data.tar.gz: 27ecc3863ae27b4e1bfe648f5ff02ad7e988872d80a6ee493318e8b898c7f635d378d41ec829b0fcde527a837c5bb6d479ac00232ff43541624d9eff09c143a7
6
+ metadata.gz: b2464557f24b9cbef36ec4019f3816b0873b7f9f40c140365f2d37465b97e1947274ab1acaff3b5bc63ef34941fbfd30a38b0cc6fb00decc8880e305c48aa88b
7
+ data.tar.gz: d65c80d75dec5d230ea5e12fc6659ed354ce077edaaef655f2e50ee4bbfb0b4a8a75893624b468ea45c7131288b974a1061a1cfaaa397b32019c9589ae7fc5a7
@@ -1,9 +1,24 @@
1
+ require 'forwardable'
2
+
1
3
  module EfoNelfo
2
4
 
3
- class Array < ::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
@@ -88,7 +88,7 @@ module EfoNelfo
88
88
 
89
89
  # Appends a order line to the order
90
90
  def add_order_line(line)
91
- line.index = lines.length + 1
91
+ line.index = lines.count + 1
92
92
  lines << line
93
93
  end
94
94
 
@@ -1,3 +1,3 @@
1
1
  module EfoNelfo
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: efo_nelfo
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
  - Gudleik Rasch