Class: StructuraidCore::DesignCodes::Resolver
- Defined in:
- lib/structuraid_core/design_codes/resolver.rb
Constant Summary collapse
- CODES_NAMESPACES =
{ 'nsr_10' => DesignCodes::NSR10, 'aci_318_19' => DesignCodes::ACI31819 }.freeze
Class Method Summary collapse
Class Method Details
.use(code_name) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/structuraid_core/design_codes/resolver.rb', line 12 def use(code_name) code_abstraction = CODES_NAMESPACES[code_name] raise DesignCodes::UnknownDesignCodeError, code_name if code_abstraction.nil? code_abstraction end |