Class: Primer::FlashComponent::Actions

Inherits:
Slot
  • Object
show all
Defined in:
app/components/primer/flash_component.rb

Overview

:nodoc:

Constant Summary

Constants included from Primer::FetchOrFallbackHelper

Primer::FetchOrFallbackHelper::InvalidValueError

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from JoinStyleArgumentsHelper

#join_style_arguments

Methods included from Primer::FetchOrFallbackHelper

#fetch_or_fallback, #fetch_or_fallback_boolean

Methods included from ClassNameHelper

#class_names

Constructor Details

#initialize(**system_arguments) ⇒ Actions

Returns a new instance of Actions.

Parameters:

  • system_arguments (Hash)

    <%= link_to_system_arguments_docs %>



69
70
71
72
73
# File 'app/components/primer/flash_component.rb', line 69

def initialize(**system_arguments)
  @system_arguments = system_arguments
  @system_arguments[:tag] = :div
  @system_arguments[:classes] = class_names(@system_arguments[:classes], "flash-action")
end

Instance Attribute Details

#system_argumentsObject (readonly)

Returns the value of attribute system_arguments.



66
67
68
# File 'app/components/primer/flash_component.rb', line 66

def system_arguments
  @system_arguments
end