Browse files

If a documentation block is found inside of the method and the method…

…'s documentation is nil, the method's documentation is set to that BBDoc (regardless of threshold).

Also added a spiffy comment header to the file.
  • Loading branch information...
1 parent 9a1fd48 commit 9aca64408ca266de8929e0f197ad7e76befcd395 @nilium committed Mar 24, 2009
Showing with 10 additions and 0 deletions.
  1. +10 −0 bbmethod.rb
View
10 bbmethod.rb
@@ -18,8 +18,14 @@
require "bbvar.rb"
require "sourcepage.rb"
+
+
+################################ BBMethod ##################################
+
+
# Class to describe a method in BlitzMax.
class BBMethod < BBMember
+
# The memberType of the method's parameters (BBVar).
PARAMTYPE="param"
@@ -152,6 +158,10 @@ def process
@page.endDocComment()
@page.addElement(doc)
+
+ if self.documentation.nil? then
+ self.documentation = doc
+ end
end
line, lineno = @page.readLine()

0 comments on commit 9aca644

Please sign in to comment.