Module: Avm::Applications::Base::Stereotype
- Defined in:
- lib/avm/applications/base/stereotype.rb
Instance Method Summary collapse
- #stereotype_by_configuration ⇒ Avm::ApplicationStereotypes::Base?
- #stereotype_by_source ⇒ Avm::ApplicationStereotypes::Base?
Instance Method Details
#stereotype_by_configuration ⇒ Avm::ApplicationStereotypes::Base?
8 9 10 11 12 |
# File 'lib/avm/applications/base/stereotype.rb', line 8 def stereotype_by_configuration entry('stereotype').optional_value.if_present do |v| ::Avm::Registry.application_stereotypes.detect(v) end end |
#stereotype_by_source ⇒ Avm::ApplicationStereotypes::Base?
15 16 17 |
# File 'lib/avm/applications/base/stereotype.rb', line 15 def stereotype_by_source ::Avm::Registry.application_stereotypes.detect_optional(local_source.class) end |