Class: ViewComponent::DocsBuilderComponent
- Defined in:
- lib/view_component/docs_builder_component.rb
Defined Under Namespace
Constant Summary
Constants inherited from Base
Base::RESERVED_PARAMETER, Base::ViewContextCalledBeforeRenderError
Constants included from Translatable
Translatable::HTML_SAFE_TRANSLATION_KEY
Constants included from SlotableV2
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(sections: []) ⇒ DocsBuilderComponent
constructor
{ heading: String, public_only: Boolean, show_types: Boolean}.
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?, #perform_render, #render, #render?, #render_in, #render_parent, #render_template_for, #request, short_identifier, type, validate_collection_parameter!, validate_initialization_parameters!, #view_cache_dependencies, #virtual_path, with_collection, with_collection_parameter, #with_variant
Methods included from WithContentHelper
Methods included from Translatable
#html_safe_translation, #i18n_scope, #translate
Methods included from SlotableV2
Methods included from ContentAreas
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 |