Exception: InvalidCommentForState
- Inherits:
-
StandardError
- Object
- StandardError
- InvalidCommentForState
- Defined in:
- lib/puppet-lint-param_comment-check/param_comments.rb
Overview
Comment received in an invalid state
Instance Attribute Summary collapse
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
Instance Method Summary collapse
-
#initialize(comment, state) ⇒ InvalidCommentForState
constructor
A new instance of InvalidCommentForState.
Constructor Details
#initialize(comment, state) ⇒ InvalidCommentForState
Returns a new instance of InvalidCommentForState.
27 28 29 30 31 |
# File 'lib/puppet-lint-param_comment-check/param_comments.rb', line 27 def initialize(comment, state) @comment = comment @state = state super "Can not process the comment '#{@comment.value.strip}' in the state #{@state}" end |
Instance Attribute Details
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
33 34 35 |
# File 'lib/puppet-lint-param_comment-check/param_comments.rb', line 33 def comment @comment end |