Exception: InvalidTokenForState

Inherits:
StandardError
  • Object
show all
Defined in:
lib/puppet-lint-module_reference-check/reference.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.



15
16
17
18
19
# File 'lib/puppet-lint-module_reference-check/reference.rb', line 15

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.



21
22
23
# File 'lib/puppet-lint-module_reference-check/reference.rb', line 21

def token
  @token
end