cellar 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cellar.rb +5 -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: 01f0c14f5424db52d646c500b8ceb421c94a238ae6e7d70df6ceecf4b6fef2a0
|
4
|
+
data.tar.gz: 106abce987a6beabd9521465863f3e8df19daa2aac49fe03d069d37d36aecbc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c823d0e520cd53cc7420257a1810b550be68975b7bd5684d1c0f9265a24db0fee0b8ff9f6abcfd386f414abaee2c7dca2e6319c912a860648823e45c31c19ebd
|
7
|
+
data.tar.gz: 130af21379e72f171779ce9f7f8f55057d7c08f3b6c1a98f33ff7fae0be07bb79414d9e14226325ed5d1ececee6ce8be1cb8162c916546b9ad55012eb4d0c276
|
data/lib/cellar.rb
CHANGED
@@ -24,7 +24,7 @@ class Object
|
|
24
24
|
end
|
25
25
|
|
26
26
|
class Cellar
|
27
|
-
VERSION="0.1.
|
27
|
+
VERSION="0.1.2"
|
28
28
|
|
29
29
|
attr_reader :fields
|
30
30
|
attr_reader :values
|
@@ -179,6 +179,10 @@ class Cellar
|
|
179
179
|
@rows
|
180
180
|
end
|
181
181
|
|
182
|
+
def rows!
|
183
|
+
[@fields.dup] + @rows
|
184
|
+
end
|
185
|
+
|
182
186
|
def row(row=nil)
|
183
187
|
@rows or raise "no rows defined"
|
184
188
|
@values = row ? @rows[@row = row] : []
|