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.



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

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

Instance Attribute Details

#alternativesObject (readonly)

Returns the value of attribute alternatives.



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

def alternatives
  @alternatives
end

Instance Method Details

#messageObject



9
10
11
# File 'lib/rouge/guesser.rb', line 9

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