class Ubcbooker::Error::ProfaneName

Attributes

message[R]
name[R]

Public Class Methods

new(name = "unknown") click to toggle source
Calls superclass method
# File lib/ubcbooker/error.rb, line 51
def initialize(name = "unknown")
  @name = name
  @message = "Error: Name includes profanity\n".red <<
    "Remember that other students might see the booking name\n" <<
    "Please try again with a different name"
  super
end