Top Level Namespace
Defined in:
Macro Summary
-
defined?(const)
This macro accepts a string or a symbol of a fully qualified constant name.
- if_defined?(const, &code)
- unless_defined?(const, &code)
Macro Detail
macro defined?(const)
#
This macro accepts a string or a symbol of a fully qualified constant name.
It validates whether the constant is defined, starting at the top level. The value
of the constant will be returned if it is defined. If it is not defined, false
is
returned.