Sha256: 3d17ad94546beb051e0bbe323a626e4b97ffaca2f1d3b80da9a0dedbdcbc7039
Contents?: true
Size: 604 Bytes
Versions: 7
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true module MrLogaLoga # == Description # # The configuration class for MrLogaLoga # # == Usage # # MrLogaLoga.configure do |configuration| # configuration.logger = ... # end class Configuration attr_accessor :logger # Initialize the configuration by setting configuration default values def initialize(**kwargs) reset kwargs.each { |key, value| instance_variable_set("@#{key}", value) } end # Reset the configuration to default values def reset @logger = MrLogaLoga::Logger.new($stdout) end end end
Version data entries
7 entries across 7 versions & 1 rubygems