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
50 51 52 53 |
# File 'lib/puppet-lint-param_comment-check/param_comments.rb', line 50 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.
55 56 57 |
# File 'lib/puppet-lint-param_comment-check/param_comments.rb', line 55 def comment @comment end |