Class: Duby::AST::TypeDefinition
- Inherits:
-
TypeReference
- Object
- Node
- TypeReference
- Duby::AST::TypeDefinition
- Defined in:
- lib/duby/ast.rb
Constant Summary
Constants inherited from TypeReference
Duby::AST::TypeReference::BlockType, Duby::AST::TypeReference::ErrorType, Duby::AST::TypeReference::NoType, Duby::AST::TypeReference::NullType, Duby::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
#==, #block?, #compatible?, #component_type, #eql?, #error?, #hash, #is_parent, #iterable?, #meta?, #narrow, #null?, #primitive?, #to_s, #unmeta, #unreachable?
Methods included from Named
Methods inherited from Node
#<<, ===, #[], #_set_parent, child, child_name, #each, #empty?, #expr?, #initialize_copy, #insert, #inspect, #line_number, #log, #precompile, #resolve_if, #resolved!, #resolved?, #simple_name, #temp, #to_s
Constructor Details
#initialize(name, superclass, interfaces) ⇒ TypeDefinition
Returns a new instance of TypeDefinition.
498 499 500 501 502 503 |
# File 'lib/duby/ast.rb', line 498 def initialize(name, superclass, interfaces) super(name, false) @superclass = superclass @interfaces = interfaces end |
Instance Attribute Details
#interfaces ⇒ Object
Returns the value of attribute interfaces.
496 497 498 |
# File 'lib/duby/ast.rb', line 496 def interfaces @interfaces end |
#superclass ⇒ Object
Returns the value of attribute superclass.
496 497 498 |
# File 'lib/duby/ast.rb', line 496 def superclass @superclass end |