class StandupMD::Config
This class provides a connector from StandupMD to the configuration classes.
Attributes
Public Class Methods
Source
# File lib/standup_md/config.rb, line 38 def initialize @cli = StandupMD::Config::Cli.new @file = StandupMD::Config::File.new @entry = StandupMD::Config::Entry.new @post = StandupMD::Config::Post.new end
Builds the links to the configuration classes.
Public Instance Methods
Source
# File lib/standup_md/config.rb, line 49 def copy self.class.new.tap do |config| config.cli.copy_from(cli) config.file.copy_from(file) config.entry.copy_from(entry) config.post.copy_from(post) end end
Builds an independent snapshot of the current configuration.
@return [StandupMD::Config]