Exception: OptionDoesntMatchHash
- Inherits:
-
StandardError
- Object
- StandardError
- OptionDoesntMatchHash
- Defined in:
- lib/puppet-lint-param_comment-check/param_comments.rb
Overview
The hash referenced in an option doesn’t match the current parameter
Instance Attribute Summary collapse
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
Instance Method Summary collapse
-
#initialize(comment) ⇒ OptionDoesntMatchHash
constructor
A new instance of OptionDoesntMatchHash.
Constructor Details
#initialize(comment) ⇒ OptionDoesntMatchHash
Returns a new instance of OptionDoesntMatchHash.
48 49 50 51 |
# File 'lib/puppet-lint-param_comment-check/param_comments.rb', line 48 def initialize(comment) @comment = comment super "Option references wrong hash #{@comment.value.strip}" end |
Instance Attribute Details
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
53 54 55 |
# File 'lib/puppet-lint-param_comment-check/param_comments.rb', line 53 def comment @comment end |