Exception: InvalidTokenForState

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

Overview

Comment received in an invalid state

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token, state) ⇒ InvalidTokenForState

Returns a new instance of InvalidTokenForState.



21
22
23
24
25
# File 'lib/puppet-lint-param_comment-check/param.rb', line 21

def initialize(token, state)
  @token = token
  @state = state
  super "Can not process the token '#{@token.value.strip}' in the state #{@state}"
end

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token.



27
28
29
# File 'lib/puppet-lint-param_comment-check/param.rb', line 27

def token
  @token
end