Class: ViewComponent::DocsBuilderComponent

Inherits:
Base
  • Object
show all
Defined in:
lib/view_component/docs_builder_component.rb

Defined Under Namespace

Classes: MethodDoc, Section

Constant Summary

Constants inherited from Base

Base::RESERVED_PARAMETER, Base::ViewContextCalledBeforeRenderError

Constants included from Translatable

Translatable::HTML_SAFE_TRANSLATION_KEY

Constants included from SlotableV2

SlotableV2::RESERVED_NAMES

Instance Attribute Summary

Attributes inherited from Base

#__vc_original_view_context

Instance Method Summary collapse

Methods inherited from Base

_after_compile, _deprecated_generate_mattr_accessor, #_output_postamble, _sidecar_files, #before_render, #before_render_check, collection_counter_parameter, collection_iteration_parameter, collection_parameter, compile, compiled?, compiler, #controller, counter_argument_present?, format, #format, #generate_distinct_locale_files, #generate_locale, #generate_sidecar, #generate_stimulus_controller, #helpers, identifier, inherited, iteration_argument_present?, #render, #render?, #render_in, #render_parent, #request, #set_original_view_context, short_identifier, strip_trailing_whitespace, strip_trailing_whitespace?, type, validate_collection_parameter!, validate_initialization_parameters!, #view_cache_dependencies, #virtual_path, with_collection, with_collection_parameter, #with_variant

Methods included from WithContentHelper

#with_content

Methods included from Translatable

#html_safe_translation, #i18n_scope, #translate

Methods included from SlotableV2

#get_slot, #set_slot

Methods included from PolymorphicSlots

included

Methods included from ContentAreas

#with

Constructor Details

#initialize(sections: []) ⇒ DocsBuilderComponent

{ heading: String, public_only: Boolean, show_types: Boolean}



68
69
70
# File 'lib/view_component/docs_builder_component.rb', line 68

def initialize(sections: [])
  @sections = sections
end