Exception: UnexpectedComment
- Inherits:
-
StandardError
- Object
- StandardError
- UnexpectedComment
- Defined in:
- lib/puppet-lint-param_comment-check/param_comments.rb
Overview
Unexpected comment found
Instance Attribute Summary collapse
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
Instance Method Summary collapse
-
#initialize(comment) ⇒ UnexpectedComment
constructor
A new instance of UnexpectedComment.
Constructor Details
#initialize(comment) ⇒ UnexpectedComment
Returns a new instance of UnexpectedComment.
38 39 40 41 |
# File 'lib/puppet-lint-param_comment-check/param_comments.rb', line 38 def initialize(comment) @comment = comment super "Unexpected comment #{@comment.value}" end |
Instance Attribute Details
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
43 44 45 |
# File 'lib/puppet-lint-param_comment-check/param_comments.rb', line 43 def comment @comment end |