phantom-object 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +7 -7
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 899e827016c6981c42fac70e59e5b65046b52a9a
4
- data.tar.gz: 900ac7cf818d09056bf334723852c87c993aa2fa
3
+ metadata.gz: 16b28dc4e4cc2b20f2c12fd9241fe19ceacc306d
4
+ data.tar.gz: db15403154d47df05fe768f850a732129d78bc9d
5
5
  SHA512:
6
- metadata.gz: f8f1dcd39e49d401be9811ba2ffc72f7f2a661eb94b62fb5c472460e22cd91acb49c5571c2fa4a486dca6edcc7c6aece035786d4e907e05a3ced0c44a9fd9373
7
- data.tar.gz: 5d1056855c41556b06f5c32a9e87bbe448170cb10e425fdc61c0c13c4c45f82cdd81b14dc2d07176393d0a2170ff1720d11dc7c1e97b7d240305ef7b14530224
6
+ metadata.gz: caa6a60ac690a548ee631c1342b92f666d3817c991e6700e8d84821a27611d420853244b4fe9b43b8ebf76a2c947ed485273f54407c3d3020f534fa5dad4089b
7
+ data.tar.gz: 3f298aa86a9ddf3765992d474ffb7d1e3f3f4e229b5f72f961cf076dbb867eabc5219307697d58efaf476731280fc7ff212c67e0a4b035a44c1f1c23cbb0544f
data/README.rdoc CHANGED
@@ -15,10 +15,10 @@ Now you can do this
15
15
 
16
16
  o = PhantomObject.new(h)
17
17
 
18
- p h.key
19
- # => "Some value"
20
- p h.another_key
18
+ p o.key
21
19
  # => "Some value"
20
+ p o.another_key
21
+ # => "Another value"
22
22
 
23
23
  And even this
24
24
 
@@ -30,7 +30,7 @@ And even this
30
30
 
31
31
  o = PhantomObject.new(h)
32
32
 
33
- p h.nested.key
33
+ p o.nested.key
34
34
  # => "Some value"
35
35
 
36
36
  For any level, and with arrays
@@ -44,9 +44,9 @@ And also you can do this, instead of PhantomObject.new()
44
44
 
45
45
  o = h.to_object
46
46
 
47
- p h.key
48
- # => "Some value"
49
- p h.another_key
47
+ p o.key
50
48
  # => "Some value"
49
+ p o.another_key
50
+ # => "Another value"
51
51
 
52
52
  Also, PhantomObject includes ActiveModel, and you can extend it to use validations, form builders, etc.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phantom-object
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kourza Ivan a.k.a. Phobos98