Class: Carbon::Compiler::Node::Definition::Class
- Defined in:
- lib/carbon/compiler/node/definition/class.rb,
lib/carbon/compiler/node/definition/class/element.rb
Overview
A class definition. This sets up a structured block of memory for various purposes. A Class’s children are its elements.
Defined Under Namespace
Classes: Element
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#data? ⇒ true
If this definition is a data definition.
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? ⇒ true
If this definition is a data definition. A Structure is one of many possible data definitions.
17 18 19 |
# File 'lib/carbon/compiler/node/definition/class.rb', line 17 def data? true end |