Class: Mirah::AST::TypeDefinition
- Inherits:
-
TypeReference
- Object
- Node
- TypeReference
- Mirah::AST::TypeDefinition
- Defined in:
- lib/mirah/ast.rb
Constant Summary
Constants inherited from TypeReference
Mirah::AST::TypeReference::BlockType, Mirah::AST::TypeReference::ErrorType, Mirah::AST::TypeReference::NoType, Mirah::AST::TypeReference::NullType, Mirah::AST::TypeReference::UnreachableType
Instance Attribute Summary collapse
-
#interfaces ⇒ Object
Returns the value of attribute interfaces.
-
#superclass ⇒ Object
Returns the value of attribute superclass.
Attributes inherited from TypeReference
Attributes included from Named
Attributes inherited from Node
#children, #inferred_type, #newline, #parent, #position
Instance Method Summary collapse
-
#initialize(name, superclass, interfaces) ⇒ TypeDefinition
constructor
A new instance of TypeDefinition.
Methods inherited from TypeReference
#==, #_dump, _load, #basic_type, #block?, #compatible?, #component_type, #eql?, #error?, #full_name, #hash, #is_parent, #iterable?, #meta?, #narrow, #null?, #primitive?, #to_s, #type_reference, #unmeta, #unreachable?, #void?
Methods included from Named
#string_value, #to_s, #validate_name
Methods inherited from Node
#<<, ===, #[], #[]=, #_dump, _load, #_set_parent, child, child_name, #child_nodes, #each, #empty?, #expr?, #inferred_type!, #initialize_copy, #insert, #inspect, #inspect_children, #line_number, #log, #precompile, #resolve_if, #resolved!, #resolved?, #simple_name, #string_value, #temp, #to_s, #top_level?, #validate_child, #validate_children
Constructor Details
#initialize(name, superclass, interfaces) ⇒ TypeDefinition
Returns a new instance of TypeDefinition.
544 545 546 547 548 549 |
# File 'lib/mirah/ast.rb', line 544 def initialize(name, superclass, interfaces) super(name, false) @superclass = superclass @interfaces = interfaces end |
Instance Attribute Details
#interfaces ⇒ Object
Returns the value of attribute interfaces.
542 543 544 |
# File 'lib/mirah/ast.rb', line 542 def interfaces @interfaces end |
#superclass ⇒ Object
Returns the value of attribute superclass.
542 543 544 |
# File 'lib/mirah/ast.rb', line 542 def superclass @superclass end |