mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Example wrappers need a top-level initializer
The default initializer made by the compiler takes no arguments. Use this one to not create a default initializer.
This commit is contained in:
parent
ecba0d00ec
commit
ab7087649d
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,9 @@ module Spectator
|
||||||
module DSL
|
module DSL
|
||||||
module StructureDSL
|
module StructureDSL
|
||||||
|
|
||||||
|
def initialize(locals : Hash(Symbol, ::Spectator::ValueWrapper))
|
||||||
|
end
|
||||||
|
|
||||||
macro describe(what, &block)
|
macro describe(what, &block)
|
||||||
context({{what}}) {{block}}
|
context({{what}}) {{block}}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue