Module: Carbon::Concrete::Item::Data

Includes:
Base
Included in:
Class, Internal, Struct
Defined in:
lib/carbon/concrete/item/data.rb

Overview

A data definition. All data definitions include this module, which acts as a sort of hirearchy. It makes it easy to identify if an item is a data definition or a function definition.

Instance Attribute Summary collapse

Attributes included from Base

#dependencies, #generics, #name, #type

Method Summary

Methods included from Base

#==, #call, #corrected_dependencies, #define, from, #hash

Instance Attribute Details

#implements<Type> (readonly)

The traits that the data type implements. This is mostly used for validation and logic.

Returns:



18
19
20
# File 'lib/carbon/concrete/item/data.rb', line 18

def implements
  @implements
end