Module: Avm::Applications::Base::Stereotype

Defined in:
lib/avm/applications/base/stereotype.rb

Instance Method Summary collapse

Instance Method Details

#stereotype_by_configurationAvm::ApplicationStereotypes::Base?



10
11
12
13
14
# File 'lib/avm/applications/base/stereotype.rb', line 10

def stereotype_by_configuration
  entry('stereotype').optional_value.if_present do |v|
    ::Avm::Registry.application_stereotypes.detect(v)
  end
end

#stereotype_by_sourceAvm::ApplicationStereotypes::Base?



17
18
19
# File 'lib/avm/applications/base/stereotype.rb', line 17

def stereotype_by_source
  ::Avm::Registry.application_stereotypes.detect_optional(local_source.class)
end