Sha256: 5ac2f04ac2e17958e52ec6471e9e622e2937cbc068dbd664a30ca5d867a2ed8a

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 Bytes

Contents

# frozen_string_literal: true

module StaffBar
  class << self
    def configure
      yield config
    end

    def config
      @_config ||= Config.new
    end
  end

  class Config
    attr_accessor :links, :theme, :position, :highlight_envs

    def initialize
      @links = []
      @theme = :dark
      @position = :bottom
      @highlight_envs = [:production]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
staff_bar-0.3.0 lib/staff_bar/config.rb
staff_bar-0.2.0 lib/staff_bar/config.rb