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

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

Instance Method Summary collapse

Instance Method Details

#handler_for_classObject



27
28
29
# File 'foobara-0.0.110/projects/type_declarations/src/with_registries.rb', line 27

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

#lookup_typeObject



19
20
21
# File 'foobara-0.0.110/projects/type_declarations/src/with_registries.rb', line 19

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

#lookup_type!Object



15
16
17
# File 'foobara-0.0.110/projects/type_declarations/src/with_registries.rb', line 15

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

#type_declaration_handler_forObject



11
12
13
# File 'foobara-0.0.110/projects/type_declarations/src/with_registries.rb', line 11

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

#type_for_declarationObject



7
8
9
# File 'foobara-0.0.110/projects/type_declarations/src/with_registries.rb', line 7

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

#type_registered?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'foobara-0.0.110/projects/type_declarations/src/with_registries.rb', line 23

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