javaparse 0.0.3 → 0.0.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.
@@ -10,6 +10,14 @@ module JavaParse
10
10
  @javadoc ||= parse_javadoc
11
11
  end
12
12
 
13
+ def content
14
+ @content
15
+ end
16
+
17
+ def method_missing(method, *args, &blk)
18
+ @content.send(method, *args)
19
+ end
20
+
13
21
  private
14
22
 
15
23
  def parse_javadoc
@@ -43,7 +43,7 @@ module JavaParse
43
43
  def partition_unit
44
44
  head, match, body = @content.partition(unit_declaration_line)
45
45
  head = removing_above_package(head)
46
- [head.strip!, body.strip!.chomp!("}")]
46
+ [JavaSection.new(head.strip!), JavaSection.new(body.strip!.chomp!("}"))]
47
47
  end
48
48
 
49
49
  def removing_above_package(text)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: javaparse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: