class
Crygen::Types::Alias
- Crygen::Types::Alias
- Crygen::Interfaces::GeneratorInterface
- Reference
- Object
Overview
Class that is used to generate the aliases.
alias_type = CGT::Alias.new("MyAlias", %w[Foo Bar])
puts alias_type.generate
Output:
alias MyAlias = Foo | Bar
Included Modules
Defined in:
types/alias.crConstructors
Instance Method Summary
-
#generate : String
Generates an alias.