class Athena::Formats::DirectionMismatchError

Public Class Methods

new(direction, directions) click to toggle source
# File lib/athena/formats.rb, line 432
def initialize(direction, directions)
  @direction, @directions = direction, directions
end

Public Instance Methods

to_s() click to toggle source
# File lib/athena/formats.rb, line 436
def to_s
  "got #{@direction.inspect}, expected one of " <<
    @directions.map { |d| d.inspect }.join(', ')
end