polyrex-objects 0.9.6 → 0.9.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0dc097939d63929e89cd861d6b36ddb83fbcc0cb
4
- data.tar.gz: 8260ffb731a9132ff5994ab3b326085983ea9204
3
+ metadata.gz: 0bec2a24766ede363dd2e2b9cb9548b8640ad836
4
+ data.tar.gz: 20324100b83396ac7e714d7abd357fd58011975b
5
5
  SHA512:
6
- metadata.gz: b8ba77914c031cf604a846ae0828dcefe7d8a686cb50ad30b8b2f389033288e6df7305644ada2ece06a14382e4c8bb6ebf6be0d9688f92fa3fcc22546449e7df
7
- data.tar.gz: f0281a320ebc45351bcb2693a1948627389ee03e6230113e2a7eb1ece6eaa662c39929a735ba420b460a94cbeba469e1ebeb48b36f556dd42aff77c1734d76e7
6
+ metadata.gz: 46863e6d945fbcda5aae331806c5d8a34fd0b34b119184eea726e3e8f0610a0d21638da86a70d7c636e497b444cbc0ed0523135a3f1474b40047da514e62e8f4
7
+ data.tar.gz: e52be1b01911396b4955e2639b7ce520ad699d4ec7053ff5bf7d1ff167af9bcb30b1463a2d2a693defd50be514214c76881505fc26d0266011c34fb5de01517b
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -86,6 +86,14 @@ class PolyrexObjects
86
86
 
87
87
  end
88
88
 
89
+ def parent?()
90
+
91
+ # if the node is at the 1st level of records it will not have a
92
+ # PolyrexObject parent
93
+
94
+ node.parent.parent.parent.parent ? true : false
95
+ end
96
+
89
97
  def to_doc()
90
98
  Rexle.new @node.to_a
91
99
  end
@@ -350,4 +358,4 @@ EOF
350
358
 
351
359
 
352
360
 
353
- end
361
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex-objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file