abstracts 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/abstracts.rb +3 -3
- 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: b37e8b07b954170ada7820741f7f1ac24f8082b8
|
|
4
|
+
data.tar.gz: 94c50797f1d52d16ff8be84b74c1266bd1b2d264
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d125725dabbac2178b4938b26b9f518ef3e48af3931d42c70f1c3254162293d604f27e07d2da6da13d2c4e5936759e827cc2e03f648da403e6743c2e1b79d63
|
|
7
|
+
data.tar.gz: 4ff9d04065915adc486d72cb44f7276dad8c620d068910b8563acaeaaf46ddcdf099bc0b14b33a77b8998b2520048b9772308a06506c58b2300b6062f0a6c82c
|
data/lib/abstracts.rb
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
module Abstract
|
|
3
3
|
# Abstract::Object class
|
|
4
4
|
class Object
|
|
5
|
-
# Get an array of attr_accessor names
|
|
5
|
+
# Get an array of attr_accessor names
|
|
6
6
|
# @return [Array] - Array of attribute accessor methods
|
|
7
7
|
def attrs
|
|
8
8
|
self.class.instance_eval do
|
|
@@ -26,8 +26,8 @@ module Abstract
|
|
|
26
26
|
builder.object
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
# Define attribute writers to Builder instance according to
|
|
30
|
-
#
|
|
29
|
+
# Define attribute writers to Abstract::Builder instance according to
|
|
30
|
+
# existing accessors of Abstract::Object instance
|
|
31
31
|
# @param object [Abstract::Object] - Abstract::Object instance
|
|
32
32
|
# @return [Abstract::Builder] - builder object
|
|
33
33
|
def initialize(object)
|