class MrLogaLoga::Configuration
Description¶ ↑
The configuration class for MrLogaLoga
Usage¶ ↑
MrLogaLoga.configure do |configuration| configuration.logger = ... end
Attributes
logger[RW]
Public Class Methods
new(**kwargs)
click to toggle source
Initialize the configuration by setting configuration default values
# File lib/mr_loga_loga/configuration.rb, line 17 def initialize(**kwargs) reset kwargs.each { |key, value| instance_variable_set("@#{key}", value) } end
Public Instance Methods
reset()
click to toggle source
Reset the configuration to default values
# File lib/mr_loga_loga/configuration.rb, line 23 def reset @logger = MrLogaLoga::Logger.new($stdout) end