method_parser 0.1.1 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/method_parser.rb +8 -12
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a14d2b95e816300afcb8ebf4604d0489a31fb02c
|
4
|
+
data.tar.gz: d73e007a09d8000b648f23da795f2cdb46e66a69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83707fbc4a5f0d4bc57126e488df2c72ab6ef2a0df40a84c405ba8fe4b7782e9cc8e09936139db0c50b9af728966d3fd2e324ed46580559ce2cebec1bbb7d655
|
7
|
+
data.tar.gz: 4d3a03cd470880e5f267da6c46ab0bd8da0f36c4ccdaba0c5fb6a1627bc23feadddc9f19093ce156f9bb2853df6458133a1699cc6c501bad62096daa4b8805d9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/method_parser.rb
CHANGED
@@ -17,21 +17,17 @@ class MethodParser
|
|
17
17
|
def to_xml
|
18
18
|
|
19
19
|
xml = RexleBuilder.new
|
20
|
+
|
20
21
|
a = xml.doc do
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
_, name, scope = y.map(&:to_s)
|
28
|
-
puts 'd'
|
29
|
-
p y
|
30
|
-
xml.send(y.first, name: name, scope: scope)
|
31
|
-
end
|
22
|
+
@to_a.each do |x|
|
23
|
+
container, name, children = x
|
24
|
+
xml.send(container.to_s.sub(/^c/,'k').to_sym, name: name.to_s) do
|
25
|
+
children.each do |y|
|
26
|
+
_, name, scope = y.map(&:to_s)
|
27
|
+
xml.send(y.first, name: name, scope: scope)
|
32
28
|
end
|
33
29
|
end
|
34
|
-
|
30
|
+
end
|
35
31
|
end
|
36
32
|
|
37
33
|
Rexle.new(a).xml pretty: true
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|