mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Move reserved keywords to a separate file
Add finalize as a reserved keyword.
This commit is contained in:
parent
04f3614ff7
commit
04cf211f24
2 changed files with 7 additions and 3 deletions
|
@ -7,8 +7,5 @@ module Spectator
|
|||
# This also helps keep error traces small.
|
||||
# Documentation only useful for debugging is included in generated code.
|
||||
module DSL
|
||||
# Keywords that cannot be used in specs using the DSL.
|
||||
# These are either problematic or reserved for internal use.
|
||||
RESERVED_KEYWORDS = %i[initialize]
|
||||
end
|
||||
end
|
||||
|
|
7
src/spectator/dsl/reserved.cr
Normal file
7
src/spectator/dsl/reserved.cr
Normal file
|
@ -0,0 +1,7 @@
|
|||
module Spectator
|
||||
module DSL
|
||||
# Keywords that cannot be used in specs using the DSL.
|
||||
# These are either problematic or reserved for internal use.
|
||||
RESERVED_KEYWORDS = %i[initialize finalize]
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue