Exception: Rouge::Lexer::AmbiguousGuess

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rouge/lexer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alternatives) ⇒ AmbiguousGuess

Returns a new instance of AmbiguousGuess.


136
# File 'lib/rouge/lexer.rb', line 136

def initialize(alternatives); @alternatives = alternatives; end

Instance Attribute Details

#alternativesObject (readonly)

Returns the value of attribute alternatives


135
136
137
# File 'lib/rouge/lexer.rb', line 135

def alternatives
  @alternatives
end

Instance Method Details

#messageObject


138
139
140
# File 'lib/rouge/lexer.rb', line 138

def message
  "Ambiguous guess: can't decide between #{alternatives.map(&:tag).inspect}"
end