module Lucky::QuickDef

Direct including types

Defined in:

lucky/quick_def.cr

Macro Summary

Macro Detail

macro quick_def(method_name, value) #

Quickly create a method with a simple return value

# Instead of:
def name
  "Kylo"
end

# You could use quick_def:
quick_def :name, "Kylo"

[View source]