Exception: Rouge::Guesser::Ambiguous

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#alternativesObject (readonly)

Returns the value of attribute alternatives.



4
5
6
# File 'lib/rouge/guesser.rb', line 4

def alternatives
  @alternatives
end

Instance Method Details

#messageObject



7
8
9
# File 'lib/rouge/guesser.rb', line 7

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