Class: WebIDL::Ast::PromiseType

Inherits:
Node
  • Object
show all
Defined in:
lib/webidl/ast/promise_type.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(return_type) ⇒ PromiseType

Returns a new instance of PromiseType.



7
8
9
# File 'lib/webidl/ast/promise_type.rb', line 7

def initialize(return_type)
  @return_type = return_type
end

Instance Attribute Details

#return_typeObject (readonly)

Returns the value of attribute return_type.



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

def return_type
  @return_type
end