class Spectator::Config::CLIArgumentsApplicator


Applies command-line arguments to a configuration.

Defined in:


Constant Summary

Log = Spectator::Log.for("config")

Logger for this class.


Instance Method Summary

Instance methods inherited from class Object

should(matcher, message = nil) should, should_eventually(matcher, message = nil) should_eventually, should_never(matcher, message = nil) should_never, should_not(matcher, message = nil) should_not

Constructor Detail

def : Array(String) = ARGV) #

Creates the configuration source. By default, the command-line arguments (ARGV) are used. But custom arguments can be passed in.

[View source]

Instance Method Detail

def apply(builder) : Nil #

Applies the specified configuration to a builder. Calling this method from multiple sources builds up the final configuration.

[View source]