Module: Avm::With::ApplicationStereotype::ClassMethods

Defined in:
lib/avm/with/application_stereotype.rb

Instance Method Summary collapse

Instance Method Details

#application_stereotypeAvm::ApplicationStereotype::Base

Returns:

  • (Avm::ApplicationStereotype::Base)


12
13
14
15
# File 'lib/avm/with/application_stereotype.rb', line 12

def application_stereotype
  @application_stereotype ||=
    ::Avm::Registry.application_stereotypes.detect(application_stereotype_name)
end

#application_stereotype_nameString

Returns:

  • (String)


18
19
20
# File 'lib/avm/with/application_stereotype.rb', line 18

def application_stereotype_name
  stereotype_namespace_module.name.demodulize
end

#stereotype_namespace_moduleModule

Returns:

  • (Module)


23
24
25
# File 'lib/avm/with/application_stereotype.rb', line 23

def stereotype_namespace_module
  module_parent.module_parent
end