Class: Dry::CLI::Help::Configuration::StyleSheet
- Inherits:
-
Object
- Object
- Dry::CLI::Help::Configuration::StyleSheet
- Defined in:
- lib/dry/cli/help/configuration.rb
Overview
What a #styles block runs against: one method per element, each validating what it is given.
Instance Attribute Summary collapse
-
#heading_case ⇒ Symbol?
readonly
The heading case, when declared.
-
#styles ⇒ Hash{Symbol => Array<Symbol>}
readonly
The elements declared.
Instance Method Summary collapse
-
#initialize ⇒ StyleSheet
constructor
A new instance of StyleSheet.
Constructor Details
#initialize ⇒ StyleSheet
Returns a new instance of StyleSheet.
239 240 241 |
# File 'lib/dry/cli/help/configuration.rb', line 239 def initialize @styles = {} end |
Instance Attribute Details
#heading_case ⇒ Symbol? (readonly)
Returns the heading case, when declared.
237 238 239 |
# File 'lib/dry/cli/help/configuration.rb', line 237 def heading_case @heading_case end |
#styles ⇒ Hash{Symbol => Array<Symbol>} (readonly)
Returns the elements declared.
234 235 236 |
# File 'lib/dry/cli/help/configuration.rb', line 234 def styles @styles end |