Class: WebIDL::Ast::Sequence
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(parent, type, opts = {}) ⇒ Sequence
constructor
A new instance of Sequence.
- #nullable? ⇒ Boolean
Methods inherited from Node
#accept, #qualified_name, #snake_name
Constructor Details
#initialize(parent, type, opts = {}) ⇒ Sequence
Returns a new instance of Sequence.
6 7 8 9 10 11 |
# File 'lib/webidl/ast/sequence.rb', line 6 def initialize(parent, type, opts = {}) super(parent) @type = type @nullable = !!opts[:nullable] end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/webidl/ast/sequence.rb', line 4 def type @type end |
Instance Method Details
#nullable? ⇒ Boolean
13 14 15 |
# File 'lib/webidl/ast/sequence.rb', line 13 def nullable? @nullable end |