Class: Avm::Registry::ApplicationStereotypes

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/registry/application_stereotypes.rb,
lib/avm/registry/application_stereotypes/build_available.rb,
lib/avm/registry/application_stereotypes/stereotype_builder.rb

Defined Under Namespace

Classes: BuildAvailable, StereotypeBuilder

Instance Method Summary collapse

Instance Method Details

#detect(obj) ⇒ Object



15
16
17
# File 'lib/avm/registry/application_stereotypes.rb', line 15

def detect(obj)
  detect_optional(obj) || raise_not_found(obj)
end

#detect_optional(obj) ⇒ Object



19
20
21
# File 'lib/avm/registry/application_stereotypes.rb', line 19

def detect_optional(obj)
  detect_by_instance_class(obj) || detect_by_source_class(obj) || detecy_by_name(obj)
end