I see that a frequent convention is to add a file often named version.cr
or named after the module it is attached to. Inside of that file, there is a definition of the module with VERSION = "[semver]"
. How can I access that version?
Asked
Active
Viewed 87 times
0

dkimot
- 2,239
- 4
- 17
- 25
1 Answers
2
Using the namespace operator ::
, this can be achieved with Module::VERSION
where Module
is the name of the module you're trying to access it from.

Sven
- 5,155
- 29
- 53