Class: Dry::CLI::Help::Configuration::StyleSheet

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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.

Returns:

  • (Symbol, nil) —

    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.

Returns:

  • (Hash{Symbol => Array<Symbol>}) —

    the elements declared



234
235
236
# File 'lib/dry/cli/help/configuration.rb', line 234

def styles
  @styles
end