Sha256: 363e2a989085482b56512bcec6748345b80469cf50731a665e31c43dbb1b68a2

Contents?: true

Size: 719 Bytes

Versions: 8

Compression:

Stored size: 719 Bytes

Contents

# frozen_string_literal: true

module DevSuite
  module Utils
    module Table
      module Config
        class Configuration < Utils::Construct::Config::Base
          set_default_settings(
            colors: {
              title: :cyan,
              column: :yellow,
              row: :default,
              border: :blue,
            },
            # alignments: {
            #   column: :left,
            #   row: :left,
            # },
          )

          config_attr :renderer, default_value: :simple, type: :symbol, resolver: :resolve_renderer

          private

          def resolve_renderer(value)
            Renderer.build_component(value)
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dev_suite-0.2.13 lib/dev_suite/utils/table/config/configuration.rb
dev_suite-0.2.12 lib/dev_suite/utils/table/config/configuration.rb
dev_suite-0.2.11 lib/dev_suite/utils/table/config/configuration.rb
dev_suite-0.2.10 lib/dev_suite/utils/table/config/configuration.rb
dev_suite-0.2.9 lib/dev_suite/utils/table/config/configuration.rb
dev_suite-0.2.8 lib/dev_suite/utils/table/config/configuration.rb
dev_suite-0.2.7 lib/dev_suite/utils/table/config/configuration.rb
dev_suite-0.2.6 lib/dev_suite/utils/table/config/configuration.rb