module Lucky::QuickDef
Direct including types
Defined in:
lucky/quick_def.crMacro Summary
-
quick_def(method_name, value)
Quickly create a method with a simple return value
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"