module Lucky

Defined in:

lucky.cr
lucky/errors.cr
lucky/memoizable.cr
lucky/secure_headers/disable_floc.cr
lucky/secure_headers/set_frame_guard.cr
lucky/secure_headers/set_sniff_guard.cr
lucky/secure_headers/set_xss_guard.cr
lucky/support/message_encryptor.cr
lucky/support/message_verifier.cr
lucky/version.cr

Constant Summary

ContinuedPipeLog = Log.for("continued_pipe_log")
Log = ::Log.for("lucky")
ROUTER = Lucky::Router.new
VERSION = "0.29.0"

Class Method Summary

Class Method Detail

def self.root #

Use Dir.current to return the root folder of your Lucky application.

In some frameworks there is a method called .root that returns the root directory of the project. In Crystal there is a built-in method for this: Dir.current. This method exists purely to help new users find Dir.current. If you call Lucky.root it will raise a compile-time error directing you to use Dir.current


[View source]
def self.router : Lucky::Router #

[View source]