mirror of
https://github.com/CompeyDev/codenamer.luau.git
synced 2024-12-13 21:40:37 +00:00
16 lines
521 B
Lua
16 lines
521 B
Lua
--[[
|
|
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))
|