Class: Primer::Alpha::Stack::GapArg
- Inherits:
-
ResponsiveArg
- Object
- ResponsiveArg
- Primer::Alpha::Stack::GapArg
- Defined in:
- app/components/primer/alpha/stack.rb
Overview
Stack’s gap argument. Used internally.
Constant Summary collapse
- DEFAULT =
nil
- OPTIONS =
[ DEFAULT, :condensed, :normal, :spacious ].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) ⇒ GapArg
constructor
A new instance of GapArg.
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.
116 117 118 |
# File 'app/components/primer/alpha/stack.rb', line 116 def values @values end |
Class Method Details
.arg_name ⇒ Object
129 130 131 |
# File 'app/components/primer/alpha/stack.rb', line 129 def self.arg_name :gap end |