Class: Regenerate::CommentVariable
- Inherits:
-
TextVariable
- Object
- PageComponent
- TextVariable
- Regenerate::CommentVariable
- Defined in:
- lib/regenerate/web-page.rb
Overview
CommentVariable Is an input only
Instance Attribute Summary
Attributes inherited from TextVariable
Attributes inherited from PageComponent
Instance Method Summary collapse
Methods inherited from TextVariable
#addToParentPage, #initializeFromStartComment, #textVariableValue
Methods inherited from PageComponent
#addLine, #addToParentPage, #finishText, #finished, #initialize, #initializeFromStartComment, #processStartComment
Constructor Details
This class inherits a constructor from Regenerate::PageComponent
Instance Method Details
#output(showSource = true) ⇒ Object
160 161 162 163 164 165 166 |
# File 'lib/regenerate/web-page.rb', line 160 def output(showSource = true) if showSource "<!-- [#{@varName}\n#{textVariableValue}\n#{@varName}] -->\n" else "" end end |
#processEndComment(parsedCommentLine) ⇒ Object
153 154 155 156 157 158 |
# File 'lib/regenerate/web-page.rb', line 153 def processEndComment(parsedCommentLine) super(parsedCommentLine) if parsedCommentLine.hasCommentStart raise ParseException.new("End comment for comment variable has an unexpected comment start") end end |