Class: WebIDL::Ast::Sequence

Inherits:
Node
  • Object
show all
Defined in:
lib/webidl/ast/sequence.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, 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

#typeObject (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

Returns:

  • (Boolean)


13
14
15
# File 'lib/webidl/ast/sequence.rb', line 13

def nullable?
  @nullable
end