class Milestoner::CLI::Configuration::Loader
Represents the fully assembled Command Line Interface (CLI
) configuration.
Constants
- DEFAULTS
- HANDLER
Public Class Methods
call(= new.call)
click to toggle source
# File lib/milestoner/cli/configuration/loader.rb, line 20 def self.call = new.call def self.with_defaults = new(handler: DEFAULTS) def initialize content: Content.new, handler: HANDLER @content = content @handler = handler end def call = content.merge(**handler.to_h.flatten_keys) private attr_reader :content, :handler end end end
new(content: Content.new, handler: HANDLER)
click to toggle source
# File lib/milestoner/cli/configuration/loader.rb, line 24 def initialize content: Content.new, handler: HANDLER @content = content @handler = handler end
with_defaults(= new(handler: DEFAULTS))
click to toggle source
# File lib/milestoner/cli/configuration/loader.rb, line 22 def self.with_defaults = new(handler: DEFAULTS) def initialize content: Content.new, handler: HANDLER @content = content @handler = handler end def call = content.merge(**handler.to_h.flatten_keys) private attr_reader :content, :handler end end
Public Instance Methods
call(= content.merge(**handler.to_h.flatten_keys))
click to toggle source
# File lib/milestoner/cli/configuration/loader.rb, line 29 def call = content.merge(**handler.to_h.flatten_keys) private attr_reader :content, :handler end