class ViewComponent::DocsBuilderComponent::ErrorKlassDoc

def call

def call
  <<~DOCS.chomp
    `#{klass_name}`
    #{error_message}
  DOCS
end

def error_message

def error_message
  ViewComponent.const_get(@error_klass)
end

def initialize(error_klass, _show_types)

def initialize(error_klass, _show_types)
  @error_klass = error_klass
end

def klass_name

def klass_name
  @error_klass.gsub("ViewComponent::", "").gsub("::MESSAGE", "")
end