Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moved some methods around, replaced multiple 'private :...' lines wit…

…h a single 'private' above their respective methods.
  • Loading branch information...
commit 11624182d479ce243e9e120db94ea137e782a51f 1 parent c5f9a25
@nilium authored
Showing with 24 additions and 27 deletions.
  1. +24 −27 sourcepage.rb
View
51 sourcepage.rb
@@ -107,12 +107,6 @@ def process()
@loaded = true
end
- # Returns whether or not the source page has already been loaded and
- # processed.
- def loaded?
- @loaded
- end
-
def processValues(line, lineNo, lastDoc, isExtern, isPrivate)
md = VARIABLE_REGEX.match(line)
raise "#{page.filePath}: Failed to match member type for '#{line}' at #{lineNumber}" if md.nil?
@@ -192,6 +186,12 @@ def readLine()
return line, lineNumber
end
+ # Returns whether or not the source page has already been loaded and
+ # processed.
+ def loaded?
+ @loaded
+ end
+
def self.each_page(&pageBlock)
@@sourcePages.each_value do
|page|
@@ -199,6 +199,24 @@ def self.each_page(&pageBlock)
end
end
+ def inspect
+ "<PAGE #{self.filePath}>"
+ end
+
+ def filePath
+ @filePath
+ end
+
+ def elements
+ @elements
+ end
+
+ def addDocBlock(block)
+ @docBlocks.push(block)
+ end
+
+private
+
def stripComments(line)
if @inComment then
return stripLineComment(stripBlockComments(line)).strip
@@ -270,25 +288,4 @@ def stripLineComment(line)
return line
end
- def inspect
- "<PAGE #{self.filePath}>"
- end
-
- def filePath
- @filePath
- end
-
- def elements
- @elements
- end
-
- def addDocBlock(block)
- @docBlocks.push(block)
- end
-
- private:stripComments
- private:stripBlockComments
- private:blockCommentBegin
- private:stripInternalBlockComment
- private:stripLineComment
end
Please sign in to comment.
Something went wrong with that request. Please try again.