Exception: Rouge::Guesser::Ambiguous
- Inherits:
-
StandardError
- Object
- StandardError
- Rouge::Guesser::Ambiguous
- Defined in:
- lib/rouge/guesser.rb
Instance Attribute Summary collapse
-
#alternatives ⇒ Object
readonly
Returns the value of attribute alternatives.
Instance Method Summary collapse
-
#initialize(alternatives) ⇒ Ambiguous
constructor
A new instance of Ambiguous.
- #message ⇒ Object
Constructor Details
#initialize(alternatives) ⇒ Ambiguous
Returns a new instance of Ambiguous.
5 |
# File 'lib/rouge/guesser.rb', line 5 def initialize(alternatives); @alternatives = alternatives; end |
Instance Attribute Details
#alternatives ⇒ Object (readonly)
Returns the value of attribute alternatives.
4 5 6 |
# File 'lib/rouge/guesser.rb', line 4 def alternatives @alternatives end |
Instance Method Details
#message ⇒ Object
7 8 9 |
# File 'lib/rouge/guesser.rb', line 7 def "Ambiguous guess: can't decide between #{alternatives.map(&:tag).inspect}" end |