Class: WebIDL::Ast::Callback

Inherits:
Node
  • Object
show all
Defined in:
lib/webidl/ast/callback.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(name, return_type, arguments) ⇒ Callback

Returns a new instance of Callback.



8
9
10
11
12
# File 'lib/webidl/ast/callback.rb', line 8

def initialize(name, return_type, arguments)
  @name        = name
  @return_type = return_type
  @arguments   = arguments
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



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

def arguments
  @arguments
end

#extended_attributesObject

Returns the value of attribute extended_attributes.



6
7
8
# File 'lib/webidl/ast/callback.rb', line 6

def extended_attributes
  @extended_attributes
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#return_typeObject (readonly)

Returns the value of attribute return_type.



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

def return_type
  @return_type
end