Class: CleoDesignTokens::Colors
- Inherits:
-
Data
- Object
- Data
- CleoDesignTokens::Colors
- Defined in:
- lib/cleo_design_tokens.rb
Overview
Namespaced by token type (colors), then by layer (primitives,
semantic) — lowercase accessors, not CleoDesignTokens::Colors:: Semantic.fetch(...) module nesting, so the call text stays identical to
the TypeScript reader (a colour greps across both repos).
Data, not a plain Hash: colors.primitives needs to be an attribute
read (matching the reader's own dot-accessor contract), and a Hash has
no .primitives method. Plural Colors, not Color — an instance
holds both buckets for the colors token type, not a single colour.
Instance Attribute Summary collapse
-
#primitives ⇒ Object
readonly
Returns the value of attribute primitives.
-
#semantic ⇒ Object
readonly
Returns the value of attribute semantic.
Instance Attribute Details
#primitives ⇒ Object (readonly)
Returns the value of attribute primitives
39 40 41 |
# File 'lib/cleo_design_tokens.rb', line 39 def primitives @primitives end |
#semantic ⇒ Object (readonly)
Returns the value of attribute semantic
39 40 41 |
# File 'lib/cleo_design_tokens.rb', line 39 def semantic @semantic end |