Class: WebIDL::Ast::Exception

Inherits:
Node
  • Object
show all
Defined in:
lib/webidl/ast/exception.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) ⇒ Exception

Returns a new instance of Exception.



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

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

Instance Attribute Details

#extended_attributesObject

Returns the value of attribute extended_attributes.



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

def extended_attributes
  @extended_attributes
end

#inheritsObject

Returns the value of attribute inherits.



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

def inherits
  @inherits
end

#membersObject

Returns the value of attribute members.



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

def members
  @members
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/webidl/ast/exception.rb', line 4

def name
  @name
end