Class: Hocon::Impl::Tokens::Problem

Inherits:
Token
  • Object
show all
Defined in:
lib/hocon/impl/tokens.rb

Instance Method Summary collapse

Constructor Details

#initialize(origin, what, message, suggest_quotes, cause) ⇒ Problem

Returns a new instance of Problem.



76
77
78
79
80
81
82
# File 'lib/hocon/impl/tokens.rb', line 76

def initialize(origin, what, message, suggest_quotes, cause)
  super(TokenType::PROBLEM, origin)
  @what = what
  @message = message
  @suggest_quotes = suggest_quotes
  @cause = cause
end

Instance Method Details

#causeObject



96
97
98
# File 'lib/hocon/impl/tokens.rb', line 96

def cause
  @cause
end

#messageObject



88
89
90
# File 'lib/hocon/impl/tokens.rb', line 88

def message
  @message
end

#suggest_quotesObject



92
93
94
# File 'lib/hocon/impl/tokens.rb', line 92

def suggest_quotes
  @suggest_quotes
end

#whatObject



84
85
86
# File 'lib/hocon/impl/tokens.rb', line 84

def what
  @what
end