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)


14
15
16
17
# File 'lib/avm/with/application_stereotype.rb', line 14

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

#application_stereotype_nameString

Returns:

  • (String)


20
21
22
# File 'lib/avm/with/application_stereotype.rb', line 20

def application_stereotype_name
  stereotype_namespace_module.name.demodulize
end

#stereotype_namespace_moduleModule

Returns:

  • (Module)


25
26
27
# File 'lib/avm/with/application_stereotype.rb', line 25

def stereotype_namespace_module
  module_parent.module_parent
end