Module: NonInstantiable

Overview

To be extended in order to render a class non-instantiable

Instance Method Summary collapse

Instance Method Details

#initialize(*_args) ⇒ Object



3
4
5
# File 'lib/mangopay/util/non_instantiable.rb', line 3

def initialize(*_args)
  raise "Cannot instantiate #{self.class.name.split('::').last}"
end