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.
432 433 434 |
# File 'lib/athena/formats.rb', line 432 def initialize(direction, directions) @direction, @directions = direction, directions end |
Instance Method Details
#to_s ⇒ Object
436 437 438 439 |
# File 'lib/athena/formats.rb', line 436 def to_s "got #{@direction.inspect}, expected one of " << @directions.map { |d| d.inspect }.join(', ') end |