Exception: OptionDoesntMatchHash

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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

#commentObject (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