Exception: Brainfucktt::InvalidByteError

Inherits:
Error
  • Object
show all
Defined in:
lib/brainfucktt/errors.rb

Overview

Raised when the value set within a Data instance is greater than a byte or less than zero.

Instance Method Summary collapse

Instance Method Details

#to_sString

Returns The error message.

Returns:

  • (String)

    The error message.



14
15
16
# File 'lib/brainfucktt/errors.rb', line 14

def to_s
  'The value of a Byte must be an Integer or respond to to_i and be between 0 and 255'
end