polyrex 0.4.4 → 0.5.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.
Files changed (2) hide show
  1. data/lib/polyrex.rb +4 -0
  2. metadata +2 -2
data/lib/polyrex.rb CHANGED
@@ -57,6 +57,10 @@ class Polyrex
57
57
  format_line!(@parent_node, LineTree.new(lines).to_a)
58
58
  self
59
59
  end
60
+
61
+ def xpath(s)
62
+ XPath.first(@doc.root, s)
63
+ end
60
64
 
61
65
  private
62
66
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-05-31 00:00:00 +01:00
12
+ date: 2010-06-01 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency