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