class RbGCCXML::Enumeration

Represents an <Enumeration> node. Has many <EnumValue> nodes.

Public Instance Methods

anonymous?() click to toggle source

Is this enumeration anonymous? As in, does it have a name or is it just a pretty wrapper around constant values, ala:

enum {
# File lib/rbgccxml/nodes/enumeration.rb, line 21
def anonymous?
  # The given GCC-XML name of an anon Enum is _[number]. We don't care what
  # that number is, only that the name matches this format =~ %r_\d+/
values() click to toggle source

Get the list of EnumValues for this enumeration

# File lib/rbgccxml/nodes/enumeration.rb, line 8
def values children