Exception: InvalidTokenForState
- Inherits:
-
StandardError
- Object
- StandardError
- InvalidTokenForState
- Defined in:
- lib/puppet-lint-module_reference-check/reference.rb
Overview
Comment received in an invalid state
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token, state) ⇒ InvalidTokenForState
constructor
A new instance of InvalidTokenForState.
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
#token ⇒ Object (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 |