rexle 0.6.3 → 0.6.4
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/lib/rexle.rb +5 -1
- metadata +2 -2
data/lib/rexle.rb
CHANGED
@@ -161,6 +161,7 @@ class Rexle
|
|
161
161
|
end
|
162
162
|
|
163
163
|
def add_text(s) @value = s; self end
|
164
|
+
def attribute(key) @attributes[key] end
|
164
165
|
def attributes() @attributes end
|
165
166
|
def children() @child_elements end
|
166
167
|
def children=(a) @child_elements = a end
|
@@ -314,7 +315,7 @@ class Rexle
|
|
314
315
|
def [](i)
|
315
316
|
@elements[i-1]
|
316
317
|
end
|
317
|
-
end
|
318
|
+
end # -- end of elements --
|
318
319
|
|
319
320
|
|
320
321
|
def parse(x=nil)
|
@@ -336,6 +337,9 @@ class Rexle
|
|
336
337
|
self
|
337
338
|
end
|
338
339
|
|
340
|
+
def add_attribute(x) @doc.attribute(x) end
|
341
|
+
def attribute(key) @doc.attribute(key) end
|
342
|
+
def attributes() @doc.attributes end
|
339
343
|
def add_element(element) @doc.root.add_element(element) end
|
340
344
|
|
341
345
|
alias add add_element
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rexle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
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-12-
|
12
|
+
date: 2010-12-03 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|