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.
|
# A `ConfigBuilder` is yielded to allow changing the configuration.
|
||||||
# NOTE: The configuration set here can be overriden
|
# NOTE: The configuration set here can be overriden
|
||||||
# with a `.spectator` file and command-line arguments.
|
# with a `.spectator` file and command-line arguments.
|
||||||
def configure : Nil
|
def configure(& : ConfigBuilder -> _) : Nil
|
||||||
yield @@config_builder
|
yield @@config_builder
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -175,7 +175,7 @@ module Spectator
|
||||||
# Builds the configuration to use for the spec.
|
# Builds the configuration to use for the spec.
|
||||||
# A `ConfigBuilder` is yielded to the block provided to this method.
|
# A `ConfigBuilder` is yielded to the block provided to this method.
|
||||||
# That builder will be used to create the configuration.
|
# That builder will be used to create the configuration.
|
||||||
def config
|
def configure(& : ConfigBuilder -> _) : Nil
|
||||||
builder = ConfigBuilder.new
|
builder = ConfigBuilder.new
|
||||||
yield builder
|
yield builder
|
||||||
@config = builder.build
|
@config = builder.build
|
||||||
|
|
Loading…
Reference in a new issue