Class: CommentLineType
Constant Summary collapse
- COMMENT_WITH_COMMENTS_REGEX =
/\/\/\/?(( (?=.))(.{0,}))/- COMMENT_WITHOUT_COMMENTS_REGEX =
/\/\/\/?(?!.)/
Instance Method Summary collapse
Methods inherited from LineType
Constructor Details
This class inherits a constructor from LineType
Instance Method Details
#isValid ⇒ Object
66 67 68 |
# File 'lib/LineType.rb', line 66 def isValid !!(@strippedLine =~ COMMENT_WITH_COMMENTS_REGEX) || !!(@strippedLine =~ COMMENT_WITHOUT_COMMENTS_REGEX) end |