Class: Primer::BorderBoxComponent::Row

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(**kwargs) ⇒ Row

Returns a new instance of Row.



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

def initialize(**kwargs)
  @kwargs = kwargs
  @kwargs[:tag] = :li
  @kwargs[:classes] = class_names(
    "Box-row",
    kwargs[:classes]
  )
end

Instance Attribute Details

#kwargsObject (readonly)

Returns the value of attribute kwargs.



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

def kwargs
  @kwargs
end