Class: Primer::BorderBoxComponent::Footer

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

Constant Summary

Constants included from FetchOrFallbackHelper

FetchOrFallbackHelper::InvalidValueError

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from FetchOrFallbackHelper

#fetch_or_fallback

Methods included from ClassNameHelper

#class_names

Constructor Details

#initialize(**system_arguments) ⇒ Footer

Returns a new instance of Footer.

Parameters:

  • system_arguments (Hash)

    <%= link_to_system_arguments_docs %>



66
67
68
69
70
71
72
73
# File 'app/components/primer/border_box_component.rb', line 66

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

Instance Attribute Details

#system_argumentsObject (readonly)

Returns the value of attribute system_arguments.



64
65
66
# File 'app/components/primer/border_box_component.rb', line 64

def system_arguments
  @system_arguments
end