class MIME::AbstractClassError

Abstract class object initialization error. Many classes in the MIME library are abstract and will raise this error.

Public Class Methods

no_instantiation(myself, klass) click to toggle source

A helper method for detecting the intialization of an object in an abstract class. myself must always be self and klass is the abstract class object.

# File lib/mime/error.rb, line 24
def self.no_instantiation myself, klass
  if myself.class == klass
    raise'cannot construct abstract class')