Module: Foobara::TypeDeclarations::WithRegistries::ClassMethods

Defined in:
foobara-0.5.8/projects/typesystem/projects/type_declarations/src/with_registries.rb

Instance Method Summary collapse

Instance Method Details

#handler_for_classObject



29
30
31
# File 'projects/typesystem/projects/type_declarations/src/with_registries.rb', line 29

def handler_for_class(...)
  Domain.current.foobara_type_builder.handler_for_class(...)
end

#lookup_typeObject



21
22
23
# File 'projects/typesystem/projects/type_declarations/src/with_registries.rb', line 21

def lookup_type(...)
  Foobara::Namespace.current.foobara_lookup_type(...)
end

#lookup_type!Object



17
18
19
# File 'projects/typesystem/projects/type_declarations/src/with_registries.rb', line 17

def lookup_type!(...)
  Foobara::Namespace.current.foobara_lookup_type!(...)
end

#type_declaration_handler_forObject



13
14
15
# File 'projects/typesystem/projects/type_declarations/src/with_registries.rb', line 13

def type_declaration_handler_for(...)
  Domain.current.foobara_type_builder.type_declaration_handler_for(...)
end

#type_for_declarationObject



9
10
11
# File 'projects/typesystem/projects/type_declarations/src/with_registries.rb', line 9

def type_for_declaration(...)
  Domain.current.foobara_type_from_declaration(...)
end

#type_registered?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'projects/typesystem/projects/type_declarations/src/with_registries.rb', line 25

def type_registered?(...)
  Foobara::Namespace.current.foobara_type_registered?(...)
end