Module: Foobara::TypeDeclarations::ErrorExtension::ClassMethods

Defined in:
foobara-0.7.3/projects/typesystem/projects/type_declarations/src/error_extension.rb

Instance Method Summary collapse

Instance Method Details

#context_type ⇒ Object



30
31
32
33
34
35
36
# File 'projects/typesystem/projects/type_declarations/src/error_extension.rb', line 30

def context_type
  return @context_type if defined?(@context_type)

  @context_type = unless abstract?
                    Foobara::Domain.foobara_type_from_declaration(self, context_type_declaration)
                  end
end

#context_type_declaration ⇒ Object



38
# File 'projects/typesystem/projects/type_declarations/src/error_extension.rb', line 38

def context_type_declaration = {}.freeze