Exception: UnexpectedComment

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

Overview

Unexpected comment found

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(comment) ⇒ UnexpectedComment

Returns a new instance of UnexpectedComment.



38
39
40
41
# File 'lib/puppet-lint-param_comment-check/param_comments.rb', line 38

def initialize(comment)
  @comment = comment
  super "Unexpected comment #{@comment.value}"
end

Instance Attribute Details

#commentObject (readonly)

Returns the value of attribute comment.



43
44
45
# File 'lib/puppet-lint-param_comment-check/param_comments.rb', line 43

def comment
  @comment
end