mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Minor changes to configure methods
This commit is contained in:
parent
6c98d7107c
commit
f549fcfa7a
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ module Spectator
|
|||
# A `ConfigBuilder` is yielded to allow changing the configuration.
|
||||
# NOTE: The configuration set here can be overriden
|
||||
# with a `.spectator` file and command-line arguments.
|
||||
def configure : Nil
|
||||
def configure(& : ConfigBuilder -> _) : Nil
|
||||
yield @@config_builder
|
||||
end
|
||||
|
||||
|
|
|
@ -175,7 +175,7 @@ module Spectator
|
|||
# Builds the configuration to use for the spec.
|
||||
# A `ConfigBuilder` is yielded to the block provided to this method.
|
||||
# That builder will be used to create the configuration.
|
||||
def config
|
||||
def configure(& : ConfigBuilder -> _) : Nil
|
||||
builder = ConfigBuilder.new
|
||||
yield builder
|
||||
@config = builder.build
|
||||
|
|
Loading…
Reference in a new issue