Method: Primer::Beta::Details#initialize
- Defined in:
- app/components/primer/beta/details.rb
permalink #initialize(overlay: NO_OVERLAY, reset: false, disabled: false, **system_arguments) ⇒ Details
Returns a new instance of Details.
52 53 54 55 56 57 58 59 60 61 62 |
# File 'app/components/primer/beta/details.rb', line 52 def initialize(overlay: NO_OVERLAY, reset: false, disabled: false, **system_arguments) @system_arguments = deny_tag_argument(**system_arguments) @system_arguments[:tag] = :details @system_arguments[:classes] = class_names( system_arguments[:classes], OVERLAY_MAPPINGS[fetch_or_fallback(OVERLAY_MAPPINGS.keys, , NO_OVERLAY)], "details-reset" => reset ) @disabled = disabled @summary_info = nil end |