Class: Primer::Alpha::Stack::WrapArg
- Inherits:
-
ResponsiveArg
- Object
- ResponsiveArg
- Primer::Alpha::Stack::WrapArg
- Defined in:
- app/components/primer/alpha/stack.rb
Overview
Stack’s wrap argument. Used internally.
Constant Summary collapse
- DEFAULT =
:nowrap
- OPTIONS =
[ nil, DEFAULT, :wrap ].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) ⇒ WrapArg
constructor
A new instance of WrapArg.
Methods inherited from ResponsiveArg
Methods included from FetchOrFallbackHelper
#fetch_or_fallback, #fetch_or_fallback_boolean, #silence_deprecations?
Constructor Details
permalink #initialize(values) ⇒ WrapArg
Returns a new instance of WrapArg.
84 85 86 |
# File 'app/components/primer/alpha/stack.rb', line 84 def initialize(values) @values = fetch_or_fallback_all(OPTIONS, values, DEFAULT) end |
Instance Attribute Details
permalink #values ⇒ Object (readonly)
Returns the value of attribute values.
76 77 78 |
# File 'app/components/primer/alpha/stack.rb', line 76 def values @values end |
Class Method Details
permalink .arg_name ⇒ Object
[View source]
88 89 90 |
# File 'app/components/primer/alpha/stack.rb', line 88 def self.arg_name :wrap end |