Class: WebIDL::Ast::Interface

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

Instance Attribute Summary collapse

Attributes inherited from Node

#parent

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept, #qualified_name, #snake_name

Constructor Details

#initialize(parent, name) ⇒ Interface

Returns a new instance of Interface.



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/webidl/ast/interface.rb', line 17

def initialize(parent, name)
  super(parent)

  @name                = name
  @members             = []
  @inherits            = []
  @implements          = []
  @includes            = []
  @extended_attributes = []
  @partial             = false
end

Instance Attribute Details

#extended_attributesObject

Returns the value of attribute extended_attributes.



10
11
12
# File 'lib/webidl/ast/interface.rb', line 10

def extended_attributes
  @extended_attributes
end

#implementsObject

Returns the value of attribute implements.



10
11
12
# File 'lib/webidl/ast/interface.rb', line 10

def implements
  @implements
end

#includesObject

Returns the value of attribute includes.



10
11
12
# File 'lib/webidl/ast/interface.rb', line 10

def includes
  @includes
end

#inheritsObject

Returns the value of attribute inherits.



10
11
12
# File 'lib/webidl/ast/interface.rb', line 10

def inherits
  @inherits
end

#membersObject

Returns the value of attribute members.



10
11
12
# File 'lib/webidl/ast/interface.rb', line 10

def members
  @members
end

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/webidl/ast/interface.rb', line 9

def name
  @name
end

#partialObject

Returns the value of attribute partial.



10
11
12
# File 'lib/webidl/ast/interface.rb', line 10

def partial
  @partial
end

Class Method Details

.listObject



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

def self.list
  @list ||= {}
end

Instance Method Details

#partial?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/webidl/ast/interface.rb', line 29

def partial?
  @partial
end