Class: Duby::AST::InterfaceDeclaration
- Inherits:
-
ClassDefinition
- Object
- Node
- ClassDefinition
- Duby::AST::InterfaceDeclaration
- Defined in:
- lib/duby/ast/class.rb
Instance Attribute Summary collapse
-
#superclass ⇒ Object
Returns the value of attribute superclass.
Attributes inherited from ClassDefinition
Attributes included from Scope
Attributes included from Named
Attributes included from Annotated
Attributes inherited from Node
#children, #inferred_type, #newline, #parent, #position
Instance Method Summary collapse
-
#initialize(parent, position, name, annotations) ⇒ InterfaceDeclaration
constructor
A new instance of InterfaceDeclaration.
Methods inherited from ClassDefinition
#_define_method, #append_node, #compile, #declare_field, #define_constructor, #define_inner_class, #define_method, #define_static_method, #implements, #infer
Methods included from Named
Methods included from Annotated
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(parent, position, name, annotations) ⇒ InterfaceDeclaration
Returns a new instance of InterfaceDeclaration.
124 125 126 127 128 129 |
# File 'lib/duby/ast/class.rb', line 124 def initialize(parent, position, name, annotations) super(parent, position, name, annotations) {|p| } @name = name @children = [[], nil] @children = yield(self) end |
Instance Attribute Details
#superclass ⇒ Object
Returns the value of attribute superclass.
120 121 122 |
# File 'lib/duby/ast/class.rb', line 120 def superclass @superclass end |