class BlackBox::Base
Includes BlackBox::Concern
, cannot be instantiated.
Public Class Methods
new()
click to toggle source
# File lib/black_box/base.rb, line 4 def initialize raise abstract_error end
Private Class Methods
inherited(subclass)
click to toggle source
# File lib/black_box/base.rb, line 12 def inherited(subclass) subclass.include BlackBox::Concern end
Public Instance Methods
abstract_error()
click to toggle source
# File lib/black_box/base.rb, line 17 def abstract_error NotImplementedError.new <<-ERROR.strip.chomp #{self.class} is an abstract class and cannot be instantiated. ERROR end