mirror of
https://github.com/CompeyDev/codenamer.luau.git
synced 2024-12-13 13:30:41 +00:00
16 lines
521 B
Text
16 lines
521 B
Text
--[[
|
|
examples/tostring.luau
|
|
|
|
Description: Codenamer implements a custom tostring metamethod, which returns a "generic type"
|
|
based on the state of the codenamer instance.
|
|
]]--
|
|
|
|
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))
|