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

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

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