javaparse 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/javaparse/java_section.rb +8 -0
- data/lib/javaparse/java_unit.rb +1 -1
- metadata +1 -1
data/lib/javaparse/java_unit.rb
CHANGED
@@ -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
|
46
|
+
[JavaSection.new(head.strip!), JavaSection.new(body.strip!.chomp!("}"))]
|
47
47
|
end
|
48
48
|
|
49
49
|
def removing_above_package(text)
|