Class: Duby::AST::InterfaceDeclaration
- Inherits:
-
ClassDefinition
- Object
- Node
- ClassDefinition
- Duby::AST::InterfaceDeclaration
- Defined in:
- lib/duby/ast/class.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#interfaces ⇒ Object
Returns the value of attribute interfaces.
-
#superclass ⇒ Object
Returns the value of attribute superclass.
Attributes included from Named
Attributes inherited from Node
#children, #inferred_type, #newline, #parent, #position
Instance Method Summary collapse
-
#initialize(parent, line_number, name) ⇒ InterfaceDeclaration
constructor
A new instance of InterfaceDeclaration.
Methods inherited from ClassDefinition
Methods included from Named
Methods inherited from Node
#[], #each, #expr?, #inspect, #line_number, #log, #precompile, #resolve_if, #resolved!, #resolved?, #simple_name, #temp, #to_s
Constructor Details
#initialize(parent, line_number, name) ⇒ InterfaceDeclaration
Returns a new instance of InterfaceDeclaration.
49 50 51 52 53 54 55 |
# File 'lib/duby/ast/class.rb', line 49 def initialize(parent, line_number, name) super(parent, line_number, name) {|p| } @interfaces = [] @name = name @children = yield(self) @interfaces, @body = children end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
47 48 49 |
# File 'lib/duby/ast/class.rb', line 47 def body @body end |
#interfaces ⇒ Object
Returns the value of attribute interfaces.
47 48 49 |
# File 'lib/duby/ast/class.rb', line 47 def interfaces @interfaces end |
#superclass ⇒ Object
Returns the value of attribute superclass.
47 48 49 |
# File 'lib/duby/ast/class.rb', line 47 def superclass @superclass end |