Class: ViewComponent::DocsBuilderComponent
- Defined in:
- lib/view_component/docs_builder_component.rb
Defined Under Namespace
Classes: ErrorKlassDoc, MethodDoc, Section
Constant Summary
Constants inherited from Base
Base::RESERVED_PARAMETER, Base::VC_INTERNAL_DEFAULT_FORMAT
Constants included from Translatable
Translatable::HTML_SAFE_TRANSLATION_KEY, Translatable::TRANSLATION_EXTENSIONS
Constants included from Slotable
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
#__vc_request, #before_render, collection_counter_parameter, collection_iteration_parameter, collection_parameter, compile, compiled?, compiler, config, #content, #content?, #controller, counter_argument_present?, ensure_compiled, #format, #helpers, identifier, inherited, iteration_argument_present?, #method_missing, #output_postamble, #output_preamble, #render, #render?, #render_in, #render_parent, #render_parent_to_string, #request, #set_original_view_context, sidecar_files, strip_trailing_whitespace, strip_trailing_whitespace?, validate_collection_parameter!, validate_initialization_parameters!, #view_cache_dependencies, #virtual_path, with_collection, with_collection_parameter
Methods included from WithContentHelper
Methods included from Translatable
Methods included from Slotable
#get_slot, #set_polymorphic_slot, #set_slot
Constructor Details
#initialize(sections: []) ⇒ DocsBuilderComponent
{ heading: String, public_only: Boolean, show_types: Boolean}
87 88 89 |
# File 'lib/view_component/docs_builder_component.rb', line 87 def initialize(sections: []) @sections = sections end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ViewComponent::Base