Class: Avm::Registry::ApplicationStereotypes
- Inherits:
-
Base
- Object
- Base
- Avm::Registry::ApplicationStereotypes
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
Methods inherited from Base
#to_s
Instance Method Details
#available ⇒ Object
9
10
11
|
# File 'lib/avm/registry/application_stereotypes.rb', line 9
def available
@available ||= build_available
end
|
#detect(obj) ⇒ Object
13
14
15
|
# File 'lib/avm/registry/application_stereotypes.rb', line 13
def detect(obj)
detect_optional(obj) || raise_not_found(obj)
end
|
#detect_optional(obj) ⇒ Object
17
18
19
|
# File 'lib/avm/registry/application_stereotypes.rb', line 17
def detect_optional(obj)
detect_by_instance_class(obj) || detect_by_source_class(obj) || detecy_by_name(obj)
end
|