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.



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

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

Instance Attribute Details

#commentObject (readonly)

Returns the value of attribute comment.



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

def comment
  @comment
end