Exception: SSCBot::AbstractMethodError

Inherits:
Error
  • Object
show all
Defined in:
lib/ssc.bot/error.rb

Overview

Author:

  • Jonathan Bradley Whited

Since:

  • 0.1.0

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ AbstractMethodError

Returns a new instance of AbstractMethodError.

Since:

  • 0.1.0



24
25
26
27
28
29
30
# File 'lib/ssc.bot/error.rb', line 24

def initialize(msg=nil)
  if msg.is_a?(Symbol)
    msg = "abstract method not implemented: #{msg}(...)"
  end

  super(msg)
end