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.



29
30
31
32
33
# File 'lib/puppet-lint-param_comment-check/param_comments.rb', line 29

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.



35
36
37
# File 'lib/puppet-lint-param_comment-check/param_comments.rb', line 35

def comment
  @comment
end