method_parser 0.1.1 → 0.1.5

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: a69185edcbdcc33ed9c8f000fe09f5e6697aa555
4
- data.tar.gz: ced811f5e38c6bf602c073d24ba09d716d7c79a2
3
+ metadata.gz: a14d2b95e816300afcb8ebf4604d0489a31fb02c
4
+ data.tar.gz: d73e007a09d8000b648f23da795f2cdb46e66a69
5
5
  SHA512:
6
- metadata.gz: 1f91912e2d798e442a3a57112b09c1383dba4734da37346f574dc2c0beaad4e86c66ccf6c4ff7792d5a3ef503482d862eac2aa2214e2dc9d361a8afa05aec251
7
- data.tar.gz: 016b0732438128ad3fb6ae185ba94d622351176c137fea8dd69229f2f7f3d2f7d22d5f71a3cd24d38628522efd7f7424bef958f37bb205925427bcde92ee4e61
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
- @to_a.each do |x|
22
- container, name, children = x
23
- puts 'container : ' + container.inspect
24
- puts 'children : ' + children.inspect
25
- xml.send(container.to_s.sub(/^c/,'k').to_sym, name: name.to_s) do
26
- children.each do |y|
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: method_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file