Module: Foobara::IsManifestable
- Included in:
- CommandRegistry::ExposedCommand, Manifestable::ClassMethods, Types::Type, Value::Processor
- Defined in:
- foobara-0.0.110/projects/domain/src/is_manifestable.rb
Instance Method Summary collapse
- #foobara_domain ⇒ Object
- #foobara_manifest ⇒ Object
- #foobara_organization ⇒ Object
- #scoped_clear_caches ⇒ Object
Instance Method Details
#foobara_domain ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'foobara-0.0.110/projects/domain/src/is_manifestable.rb', line 14 def return @foobara_domain if defined?(@foobara_domain) scoped = self while scoped if scoped.is_a?(::Module) if scoped. return @foobara_domain = scoped end end scoped = scoped.scoped_namespace end @foobara_domain = GlobalDomain end |
#foobara_manifest ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'foobara-0.0.110/projects/domain/src/is_manifestable.rb', line 40 def to_include = TypeDeclarations. h = { scoped_path:, scoped_name:, scoped_short_name:, scoped_prefix:, scoped_full_path:, scoped_full_name:, scoped_category:, reference: , domain: &., organization: &. } parent = scoped_namespace if parent parent_category = Namespace.global.(parent) if parent_category if to_include to_include << parent end h[:parent] = [parent_category, parent.] end end h end |
#foobara_organization ⇒ Object
32 33 34 35 36 37 38 |
# File 'foobara-0.0.110/projects/domain/src/is_manifestable.rb', line 32 def if is_a?(::Module) && self else . end end |
#scoped_clear_caches ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'foobara-0.0.110/projects/domain/src/is_manifestable.rb', line 3 def scoped_clear_caches [ # TODO: what about this one?? # "@created_in_namespace", "@foobara_domain" ].each do |variable| remove_instance_variable(variable) if instance_variable_defined?(variable) end super end |