Class: Primer::Alpha::Stack::AlignArg
- Inherits:
-
ResponsiveArg
- Object
- ResponsiveArg
- Primer::Alpha::Stack::AlignArg
- Defined in:
- app/components/primer/alpha/stack.rb
Overview
Stack’s align argument. Used internally.
Constant Summary collapse
- DEFAULT =
:stretch
- OPTIONS =
[ nil, DEFAULT, :start, :center, :end, :baseline ].freeze
Constants inherited from ResponsiveArg
Constants included from FetchOrFallbackHelper
FetchOrFallbackHelper::InvalidValueError
Instance Attribute Summary collapse
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(values) ⇒ AlignArg
constructor
A new instance of AlignArg.
Methods inherited from ResponsiveArg
Methods included from FetchOrFallbackHelper
#fetch_or_fallback, #fetch_or_fallback_boolean, #silence_deprecations?
Constructor Details
Instance Attribute Details
#values ⇒ Object (readonly)
Returns the value of attribute values.
54 55 56 |
# File 'app/components/primer/alpha/stack.rb', line 54 def values @values end |
Class Method Details
.arg_name ⇒ Object
69 70 71 |
# File 'app/components/primer/alpha/stack.rb', line 69 def self.arg_name :align end |