Class: WebIDL::Ast::Module

Inherits:
Node
  • Object
show all
Defined in:
lib/webidl/ast/module.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#parent

Instance Method Summary collapse

Methods inherited from Node

#accept, #qualified_name, #snake_name

Constructor Details

#initialize(parent, name) ⇒ Module

Returns a new instance of Module.



8
9
10
11
12
13
# File 'lib/webidl/ast/module.rb', line 8

def initialize(parent, name)
  @parent              = parent
  @name                = name
  @definitions         = []
  @extended_attributes = []
end

Instance Attribute Details

#definitionsObject

Returns the value of attribute definitions.



6
7
8
# File 'lib/webidl/ast/module.rb', line 6

def definitions
  @definitions
end

#extended_attributesObject

Returns the value of attribute extended_attributes.



6
7
8
# File 'lib/webidl/ast/module.rb', line 6

def extended_attributes
  @extended_attributes
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/webidl/ast/module.rb', line 5

def name
  @name
end