| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | warn(ThreadContext
the current context context, String the filename for the warning fileName, int the line number for the warning lineNumber, String to be displayed as a warning message)Produce a non-verbose warning with the specified file, line, and message. |
| public static void | warnDeprecated(ThreadContext
the current context context, String to be displayed as a warning message)Produce a warning if deprecated is set (e.g. Warning[:deprecated] = true) |
| public static void | warnDeprecatedForRemoval(ThreadContext
the current context context, String to be displayed as a warning message, String the version at which this deprecated feature will be removed version)
Deprecated
since 10.0.
Produce a warning if deprecated is set (e.g. Warning[:deprecated] = true) |
| public static void | warnDeprecatedForRemovalAlternate(ThreadContext
the current context context, String to be displayed as a warning message, String the version at which this deprecated feature will be removed version, String the alternate feature that should be used instead alternate)Produce a warning if deprecated is set (e.g. Warning[:deprecated] = true) |
| public static void | warnExperimental(ThreadContext
the current context context, String to be displayed as a warning message)Produce a warning if experimental is set (e.g. Warning[:experimental] = true) |
| public static void | |
| public static void | warningDeprecated(ThreadContext
the current context context, String to be displayed as a warning message)Produce a warning if deprecated is set (e.g. Warning[:deprecated] = true) and in verbose mode. |
| public static void | warnPerformance(ThreadContext
the current context context, String to be displayed as a warning message)Produce a warning if performance is set (e.g. Warning[:performance] = true) |
| public static void | warnReservedName(ThreadContext
the current context context, String the reserved name name, String the version the name will be created in version)Produce a warning for reserved constants that will be used by the Ruby language in a later version. |
| Warn | back to summary |
|---|---|
| public Warn() | |
| warn | back to summary |
|---|---|
| public static void warn(ThreadContext context, String message) | |
| warn | back to summary |
|---|---|
| public static void warn(ThreadContext context, String fileName, int lineNumber, String message) Produce a non-verbose warning with the specified file, line, and message.
| |
| warnDeprecated | back to summary |
|---|---|
| public static void warnDeprecated(ThreadContext context, String message) Produce a warning if deprecated is set (e.g. Warning[:deprecated] = true)
| |
| warnDeprecatedForRemoval | back to summary |
|---|---|
| public static void warnDeprecatedForRemoval(ThreadContext context, String message, String version)
Deprecated since 10.0. Produce a warning if deprecated is set (e.g. Warning[:deprecated] = true)
| |
| warnDeprecatedForRemovalAlternate | back to summary |
|---|---|
| public static void warnDeprecatedForRemovalAlternate(ThreadContext context, String message, String version, String alternate) Produce a warning if deprecated is set (e.g. Warning[:deprecated] = true)
| |
| warnExperimental | back to summary |
|---|---|
| public static void warnExperimental(ThreadContext context, String message) Produce a warning if experimental is set (e.g. Warning[:experimental] = true)
| |
| warning | back to summary |
|---|---|
| public static void warning(ThreadContext context, String message) | |
| warningDeprecated | back to summary |
|---|---|
| public static void warningDeprecated(ThreadContext context, String message) Produce a warning if deprecated is set (e.g. Warning[:deprecated] = true) and in verbose mode.
| |
| warnPerformance | back to summary |
|---|---|
| public static void warnPerformance(ThreadContext context, String message) Produce a warning if performance is set (e.g. Warning[:performance] = true)
| |
| warnReservedName | back to summary |
|---|---|
| public static void warnReservedName(ThreadContext context, String name, String version) Produce a warning for reserved constants that will be used by the Ruby language in a later version. This only works if deprecation warnings are enabled.
| |