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.
-
#includes ⇒ Object
Returns the value of attribute includes.
-
#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.
-
#partial ⇒ Object
Returns the value of attribute partial.
Attributes inherited from Node
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(parent, name) ⇒ Interface
constructor
A new instance of Interface.
- #partial? ⇒ Boolean
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_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 |
#includes ⇒ Object
Returns the value of attribute includes.
10 11 12 |
# File 'lib/webidl/ast/interface.rb', line 10 def includes @includes 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 |
#partial ⇒ Object
Returns the value of attribute partial.
10 11 12 |
# File 'lib/webidl/ast/interface.rb', line 10 def partial @partial end |
Class Method Details
.list ⇒ Object
5 6 7 |
# File 'lib/webidl/ast/interface.rb', line 5 def self.list @list ||= {} end |
Instance Method Details
#partial? ⇒ Boolean
29 30 31 |
# File 'lib/webidl/ast/interface.rb', line 29 def partial? @partial end |