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.
7 |
# File 'lib/rouge/guesser.rb', line 7 def initialize(alternatives); @alternatives = alternatives; end |
Instance Attribute Details
#alternatives ⇒ Object (readonly)
Returns the value of attribute alternatives.
6 7 8 |
# File 'lib/rouge/guesser.rb', line 6 def alternatives @alternatives end |
Instance Method Details
#message ⇒ Object
9 10 11 |
# File 'lib/rouge/guesser.rb', line 9 def "Ambiguous guess: can't decide between #{alternatives.map(&:tag).inspect}" end |