Class: Carbon::Compiler::Node::Definition::Enum
- Defined in:
- lib/carbon/compiler/node/definition/enum.rb,
lib/carbon/compiler/node/definition/enum/element.rb
Overview
An Enum definition. Enums contain a set of elements that have associated type or value information.
Defined Under Namespace
Classes: Element
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#[], #accept, #attributes!, #behavior?, #data, #each, #identity?, #initialize, #map!, mapping, #merge!, #type!, #update!
Constructor Details
This class inherits a constructor from Carbon::Compiler::Node::Base
Instance Method Details
#data? ⇒ Boolean
13 14 15 |
# File 'lib/carbon/compiler/node/definition/enum.rb', line 13 def data? true end |