blobject 0.1.4 → 0.1.5
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.
- data/README.markdown +7 -5
- data/lib/blobject/version.rb +1 -1
- metadata +1 -1
data/README.markdown
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|

|
2
2
|
|
3
|
-
Provides a
|
3
|
+
Provides a fluent to create blobs of data for views, JSON etc.
|
4
4
|
|
5
5
|
## Examples
|
6
6
|
|
@@ -40,8 +40,9 @@ Provides a free flowing syntax for creating blobs of data.
|
|
40
40
|
all of the above initialisation methods can be used in this way too.
|
41
41
|
|
42
42
|
### Object graphs can be as complex as necessary
|
43
|
-
|
44
|
-
|
43
|
+
|
44
|
+
b = blobject
|
45
|
+
b.very.deep.nesting.of.objects = 2
|
45
46
|
|
46
47
|
The intermediary blobjects are created automagically
|
47
48
|
|
@@ -71,8 +72,9 @@ The freeze method prevents the blobject from being extended or changed.
|
|
71
72
|
b.name = 'hello'
|
72
73
|
=> Exception!
|
73
74
|
|
74
|
-
###
|
75
|
-
|
75
|
+
### empty? and blank?
|
76
|
+
|
77
|
+
b = blobject
|
76
78
|
b.empty? && b.blank?
|
77
79
|
=> true
|
78
80
|
b.number = 123
|
data/lib/blobject/version.rb
CHANGED