enum

CWE::Status

Inherits Enum < Comparable < Value < Object

Lifecycle status assigned by the CWE editorial board.

Constants

Stable = 0
Draft = 1
Incomplete = 2
Deprecated = 3
Obsolete = 4
Usable = 5
Other = 6

Constructors

new(pull : JSON::PullParser) : Status
Source
parse_label(s : String | Nil) : Status
Source

Instance methods

deprecated?

Returns true if this enum value equals Deprecated

Source
draft?

Returns true if this enum value equals Draft

Source
incomplete?

Returns true if this enum value equals Incomplete

Source
obsolete?

Returns true if this enum value equals Obsolete

Source
other?

Returns true if this enum value equals Other

Source
stable?

Returns true if this enum value equals Stable

Source
to_json(json : JSON::Builder) : Nil

JSON label round-trip; see Abstraction#to_json.

Source
to_s(io : IO) : Nil

Appends a String representation of this enum member to the given io.

See also: to_s.

Source
to_s

Returns a String representation of this enum member. In the case of regular enums, this is just the name of the member. In the case of flag enums, it's the names joined by vertical bars, or "None", if the value is zero.

If an enum's value doesn't match a member's value, the raw value is returned as a string.

Color::Red.to_s                     # => "Red"
IOMode::None.to_s                   # => "None"
(IOMode::Read | IOMode::Write).to_s # => "Read | Write"

Color.new(10).to_s # => "10"
Source
usable?

Returns true if this enum value equals Usable

Source