Module: Magic::Lookup
- Includes:
- Namespaces, Memery
- Defined in:
- lib/magic/lookup.rb,
lib/magic/lookup/error.rb,
lib/magic/lookup/authors.rb,
lib/magic/lookup/version.rb,
lib/magic/lookup/namespaces.rb
Defined Under Namespace
Modules: Namespaces
Classes: Error
Constant Summary
collapse
- AUTHORS =
[
Gem::Author.new(
name: 'Alexander Senko',
email: '[email protected]',
github: 'Alexander-Senko',
),
]
- VERSION =
'0.2.0'
Instance Attribute Summary
Attributes included from Namespaces
#namespaces
Instance Method Summary
collapse
Methods included from Namespaces
#for
Instance Method Details
#descendants ⇒ Object
33
34
35
36
37
38
|
# File 'lib/magic/lookup.rb', line 33
def descendants
[
*subclasses,
*subclasses.flat_map(&__method__),
]
end
|
#name_for(object_class) ⇒ Object
31
|
# File 'lib/magic/lookup.rb', line 31
def name_for(object_class) = raise NotImplementedError
|