Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

Commit

Permalink
If a documentation block is found inside of the method and the method…
Browse files Browse the repository at this point in the history
…'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
nilium committed Mar 24, 2009
1 parent 9a1fd48 commit 9aca644
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bbmethod.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 9aca644

Please sign in to comment.