recursive-struct 1.0.0 → 1.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a92fbdc388f60e4064c7267d6a887c6d0c255b8
4
- data.tar.gz: 1f50574b06297b43a6b34eeae8b42c34178a00c5
3
+ metadata.gz: af4a06d14665c230765983b2dbe4c3401f98bf43
4
+ data.tar.gz: fc0b8d03a5f98efe05f199579594f8853b4e0bb5
5
5
  SHA512:
6
- metadata.gz: d87fa52ea29f5a600f9d482e896139f9636332170a3728a76b39fb74058001ac9966b42dfce4c189ce577356c3b8c93ac75b08e34c0c5959f223371dee0c5f9d
7
- data.tar.gz: c7b492cac6d6f469d030f79f42e85d95c6aeea14cfd0811179de01843620d8bfeee73f88c191bdba4bbe8931c4aff4618b14cb167fbd4f9cc5f6e014ac80ed41
6
+ metadata.gz: e24abea12d87886650f09bb4d255ee99ab7dd01127b25097a07dac0775a6f6dccbd6cc8cff6f4d3555fdd25c8819e33ba320f1e46dc81cdb96acf0416be6c8e8
7
+ data.tar.gz: 0b3b91a7fd2f236f1ae794db5cf2505bab61d961e3c426846bc8b4e30f6a2c10af71f7b82300991ff63370f1ea4ebcd765962fc40c0e521909097679f74a15b8
data/README.md CHANGED
@@ -52,11 +52,7 @@ And then execute:
52
52
  Or install it yourself as:
53
53
 
54
54
  $ gem install recursive-struct
55
-
56
- ## Usage
57
-
58
- TODO: Write usage instructions here
59
-
55
+
60
56
  ## Contributing
61
57
 
62
58
  1. Fork it
@@ -49,28 +49,31 @@ class RecursiveStruct < OpenStruct
49
49
 
50
50
  end
51
51
 
52
- r = RecursiveStruct.new
53
52
 
54
- r.time = 'now'
53
+ # Examples
55
54
 
56
- puts r.time
57
-
58
- r.dog.breed = 'poodle'
59
-
60
- puts r.dog.breed
61
-
62
- r.wow.hi.great.golly = 'nope'
63
-
64
- puts r.wow.hi.great.golly
65
-
66
- hash = {cat: 'none', dog: { color: 'black', breed: 'poodle' }}
67
-
68
- i = RecursiveStruct.new hash
69
-
70
- puts i.cat
71
-
72
- puts i.dog
73
-
74
- puts i.dog.color
75
-
76
- puts i.dog.breed
55
+ # r = RecursiveStruct.new
56
+ #
57
+ # r.time = 'now'
58
+ #
59
+ # puts r.time
60
+ #
61
+ # r.dog.breed = 'poodle'
62
+ #
63
+ # puts r.dog.breed
64
+ #
65
+ # r.wow.hi.great.golly = 'nope'
66
+ #
67
+ # puts r.wow.hi.great.golly
68
+ #
69
+ # hash = {cat: 'none', dog: { color: 'black', breed: 'poodle' }}
70
+ #
71
+ # i = RecursiveStruct.new hash
72
+ #
73
+ # puts i.cat
74
+ #
75
+ # puts i.dog
76
+ #
77
+ # puts i.dog.color
78
+ #
79
+ # puts i.dog.breed
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "recursive-struct"
7
- spec.version = "1.0.0"
7
+ spec.version = "1.1.0"
8
8
  spec.authors = ["Charles Chamberlain"]
9
9
  spec.email = ["charles@charlesetc.com"]
10
10
  spec.description = %q{Recursive-Struct allows for inifinite Open Struct chains.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recursive-struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Chamberlain