Class: Duby::AST::InterfaceDeclaration

Inherits:
ClassDefinition show all
Defined in:
lib/duby/ast/class.rb

Instance Attribute Summary collapse

Attributes inherited from ClassDefinition

#interfaces

Attributes included from Scope

#static_scope

Attributes included from Named

#name

Attributes included from Annotated

#annotations

Attributes inherited from Node

#children, #inferred_type, #newline, #parent, #position

Instance Method Summary collapse

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

#to_s

Methods included from Annotated

#annotation

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

#superclassObject

Returns the value of attribute superclass.



120
121
122
# File 'lib/duby/ast/class.rb', line 120

def superclass
  @superclass
end