Module: Carbon::Concrete::Item::Data
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
-
#implements ⇒ <Type>
readonly
The traits that the data type implements.
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.
18 19 20 |
# File 'lib/carbon/concrete/item/data.rb', line 18 def implements @implements end |