Exception: InvalidCommentForState

Inherits:
StandardError
  • Object
show all
Defined in:
lib/puppet-lint-param_comment-check/param_comments.rb

Overview

Comment received in an invalid state

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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