Exception: Rouge::Lexer::AmbiguousGuess
- Inherits:
-
StandardError
- Object
- StandardError
- Rouge::Lexer::AmbiguousGuess
- Defined in:
- lib/rouge/lexer.rb
Instance Attribute Summary collapse
-
#alternatives ⇒ Object
readonly
Returns the value of attribute alternatives.
Instance Method Summary collapse
-
#initialize(alternatives) ⇒ AmbiguousGuess
constructor
A new instance of AmbiguousGuess.
- #message ⇒ Object
Constructor Details
#initialize(alternatives) ⇒ AmbiguousGuess
Returns a new instance of AmbiguousGuess.
123 |
# File 'lib/rouge/lexer.rb', line 123 def initialize(alternatives); @alternatives = alternatives; end |
Instance Attribute Details
#alternatives ⇒ Object (readonly)
Returns the value of attribute alternatives.
122 123 124 |
# File 'lib/rouge/lexer.rb', line 122 def alternatives @alternatives end |
Instance Method Details
#message ⇒ Object
125 126 127 |
# File 'lib/rouge/lexer.rb', line 125 def "Ambiguous guess: can't decide between #{alternatives.map(&:tag).inspect}" end |