Module: Eco::API::UseCases::OozeSamples::Helpers::Rescuable
- Included in:
- OozeBaseCase
- Defined in:
- lib/eco/api/usecases/ooze_samples/helpers/rescuable.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.validate_base_type!(base) ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'lib/eco/api/usecases/ooze_samples/helpers/rescuable.rb', line 47 def validate_base_type!(base) return super if defined?(super) msg = "#{self} can only be included in Eco::API::Common::Loaders::Base" msg << "\nCan't be included in #{base}" raise LoadError, msg unless base <= Eco::API::Common::Loaders::Base true end |