Exception: Athena::Formats::DirectionMismatchError
- Inherits:
-
FormatError
- Object
- StandardError
- FormatError
- Athena::Formats::DirectionMismatchError
- Defined in:
- lib/athena/formats.rb
Instance Method Summary collapse
-
#initialize(direction, directions) ⇒ DirectionMismatchError
constructor
A new instance of DirectionMismatchError.
- #to_s ⇒ Object
Constructor Details
#initialize(direction, directions) ⇒ DirectionMismatchError
Returns a new instance of DirectionMismatchError.
434 435 436 |
# File 'lib/athena/formats.rb', line 434 def initialize(direction, directions) @direction, @directions = direction, directions end |
Instance Method Details
#to_s ⇒ Object
438 439 440 441 |
# File 'lib/athena/formats.rb', line 438 def to_s "got #{@direction.inspect}, expected one of " << @directions.map { |d| d.inspect }.join(', ') end |