Move reserved keywords to a separate file

Add finalize as a reserved keyword.
This commit is contained in:
Michael Miller 2022-03-19 21:56:18 -06:00
parent 04f3614ff7
commit 04cf211f24
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF
2 changed files with 7 additions and 3 deletions

View file

@ -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

View 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