Module: NonInstantiable
- Included in:
- MangoModel::BankAccount, MangoModel::DebitedBankAccount, MangoModel::EntityBase, MangoModel::IncomeRange, MangoModel::PayIn, MangoModel::User
- Defined in:
- lib/mangopay/util/non_instantiable.rb
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 |