Class: WebIDL::Ast::Module
Instance Attribute Summary collapse
-
#definitions ⇒ Object
Returns the value of attribute definitions.
-
#extended_attributes ⇒ Object
Returns the value of attribute extended_attributes.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(parent, name) ⇒ Module
constructor
A new instance of Module.
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
#definitions ⇒ Object
Returns the value of attribute definitions.
6 7 8 |
# File 'lib/webidl/ast/module.rb', line 6 def definitions @definitions end |
#extended_attributes ⇒ Object
Returns the value of attribute extended_attributes.
6 7 8 |
# File 'lib/webidl/ast/module.rb', line 6 def extended_attributes @extended_attributes end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/webidl/ast/module.rb', line 5 def name @name end |