Class: WebIDL::Ast::Interface
Instance Attribute Summary collapse
-
#extended_attributes ⇒ Object
Returns the value of attribute extended_attributes.
-
#implements ⇒ Object
Returns the value of attribute implements.
-
#inherits ⇒ Object
Returns the value of attribute inherits.
-
#members ⇒ Object
Returns the value of attribute members.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(parent, name) ⇒ Interface
constructor
A new instance of Interface.
Methods inherited from Node
#accept, #qualified_name, #snake_name
Constructor Details
#initialize(parent, name) ⇒ Interface
Returns a new instance of Interface.
12 13 14 15 16 17 18 19 20 |
# File 'lib/webidl/ast/interface.rb', line 12 def initialize(parent, name) super(parent) @name = name @members = [] @inherits = [] @implements = [] @extended_attributes = [] end |
Instance Attribute Details
#extended_attributes ⇒ Object
Returns the value of attribute extended_attributes.
10 11 12 |
# File 'lib/webidl/ast/interface.rb', line 10 def extended_attributes @extended_attributes end |
#implements ⇒ Object
Returns the value of attribute implements.
10 11 12 |
# File 'lib/webidl/ast/interface.rb', line 10 def implements @implements end |
#inherits ⇒ Object
Returns the value of attribute inherits.
10 11 12 |
# File 'lib/webidl/ast/interface.rb', line 10 def inherits @inherits end |
#members ⇒ Object
Returns the value of attribute members.
10 11 12 |
# File 'lib/webidl/ast/interface.rb', line 10 def members @members end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/webidl/ast/interface.rb', line 9 def name @name end |
Class Method Details
.list ⇒ Object
5 6 7 |
# File 'lib/webidl/ast/interface.rb', line 5 def self.list @list ||= {} end |