module Exlibris::Primo::Abstract
If a class is abstract, it can't be instantiated.
Public Class Methods
included(klass)
click to toggle source
# File lib/exlibris/primo/abstract.rb, line 7 def self.included(klass) klass.class_eval do extend ClassAttributes end end
new(*args)
click to toggle source
# File lib/exlibris/primo/abstract.rb, line 23 def initialize *args raise NotImplementedError.new("Cannot instantiate #{self.class.name}. It is abstract") if self.class.abstract? end