class KXI::Exceptions::AbstractException

Raised when method that was supposed to be implemented by super class wasn't

Public Class Methods

new(cl) click to toggle source

Instantiates the {KXI::Exceptions::AbstractException} class @param cl [Class] Abstract class

Calls superclass method
# File lib/kxi/exceptions/abstract_exception.rb, line 26
def initialize(cl)
        frame = Reflection::StackFrame.callstack(3).first
        @file = frame.file
        @mtd = frame.method
        super("Abstract method #{cl.name}##{@mtd} wasn't implemented!")
        @class = cl
end

Public Instance Methods

class() click to toggle source

Returns the abstract class @return [Class] Abstract class

# File lib/kxi/exceptions/abstract_exception.rb, line 8
def class
        @class
end
file() click to toggle source

Returns the file that contains the abstract class @return [String] Path of file that contains the abstract class

# File lib/kxi/exceptions/abstract_exception.rb, line 14
def file
        @file
end
method() click to toggle source

Returns name of the abstract method @return [String] Name of the abstract method

# File lib/kxi/exceptions/abstract_exception.rb, line 20
def method
        @mtd
end