chore(examples): include tostring example

This commit is contained in:
Erica Marigold 2023-08-19 20:49:10 +05:30
parent d3c62aaccc
commit c74c8a1d01
No known key found for this signature in database
GPG key ID: 23CD97ABBBCC5ED2

9
examples/tostring.luau Normal file
View file

@ -0,0 +1,9 @@
local Codenamer = require("../dist/codenamer")
local codenamer = Codenamer.new()
print("I have a codenamer instance of type:", tostring(codenamer))
codenamer:with_dictionary({ "this", "is", "a", "custom", "dictionary" })
print("With a custom dictionary provided, the instance is now of type: ", tostring(codenamer))