Class: TRuby::IR::TypeAlias
Overview
Type alias declaration: type Name = Definition
Instance Attribute Summary collapse
-
#definition ⇒ Object
Returns the value of attribute definition.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type_params ⇒ Object
Returns the value of attribute type_params.
Attributes inherited from Node
#location, #metadata, #type_info
Instance Method Summary collapse
-
#initialize(name:, definition:, type_params: [], **opts) ⇒ TypeAlias
constructor
A new instance of TypeAlias.
Methods inherited from Node
#accept, #children, #transform
Constructor Details
#initialize(name:, definition:, type_params: [], **opts) ⇒ TypeAlias
Returns a new instance of TypeAlias.
47 48 49 50 51 52 |
# File 'lib/t_ruby/ir.rb', line 47 def initialize(name:, definition:, type_params: [], **opts) super(**opts) @name = name @definition = definition @type_params = type_params end |
Instance Attribute Details
#definition ⇒ Object
Returns the value of attribute definition.
45 46 47 |
# File 'lib/t_ruby/ir.rb', line 45 def definition @definition end |
#name ⇒ Object
Returns the value of attribute name.
45 46 47 |
# File 'lib/t_ruby/ir.rb', line 45 def name @name end |
#type_params ⇒ Object
Returns the value of attribute type_params.
45 46 47 |
# File 'lib/t_ruby/ir.rb', line 45 def type_params @type_params end |