Class: CubitComponents::StyleConfig
- Inherits:
-
Object
- Object
- CubitComponents::StyleConfig
- Defined in:
- lib/cubit_components/style_dsl.rb
Defined Under Namespace
Classes: Default
Instance Attribute Summary collapse
-
#defaults ⇒ Object
readonly
Returns the value of attribute defaults.
-
#expansions ⇒ Object
readonly
Returns the value of attribute expansions.
-
#pattern_expansions ⇒ Object
readonly
Returns the value of attribute pattern_expansions.
-
#presences ⇒ Object
readonly
Returns the value of attribute presences.
Instance Method Summary collapse
-
#initialize(defaults: [], expansions: {}, pattern_expansions: {}, presences: []) ⇒ StyleConfig
constructor
A new instance of StyleConfig.
Constructor Details
#initialize(defaults: [], expansions: {}, pattern_expansions: {}, presences: []) ⇒ StyleConfig
Returns a new instance of StyleConfig.
9 10 11 12 13 14 15 |
# File 'lib/cubit_components/style_dsl.rb', line 9 def initialize(defaults: [], expansions: {}, pattern_expansions: {}, presences: []) @defaults = defaults.freeze @expansions = expansions.freeze @pattern_expansions = pattern_expansions.freeze @presences = presences.freeze freeze end |
Instance Attribute Details
#defaults ⇒ Object (readonly)
Returns the value of attribute defaults.
7 8 9 |
# File 'lib/cubit_components/style_dsl.rb', line 7 def defaults @defaults end |
#expansions ⇒ Object (readonly)
Returns the value of attribute expansions.
7 8 9 |
# File 'lib/cubit_components/style_dsl.rb', line 7 def expansions @expansions end |
#pattern_expansions ⇒ Object (readonly)
Returns the value of attribute pattern_expansions.
7 8 9 |
# File 'lib/cubit_components/style_dsl.rb', line 7 def pattern_expansions @pattern_expansions end |
#presences ⇒ Object (readonly)
Returns the value of attribute presences.
7 8 9 |
# File 'lib/cubit_components/style_dsl.rb', line 7 def presences @presences end |