Class: WebIDL::Ast::TypeDef

Inherits:
Node
  • Object
show all
Defined in:
lib/webidl/ast/typedef.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept, #qualified_name, #snake_name

Constructor Details

#initialize(parent, type, name) ⇒ TypeDef

Returns a new instance of TypeDef.



7
8
9
10
11
# File 'lib/webidl/ast/typedef.rb', line 7

def initialize(parent, type, name)
  @parent = parent
  @type   = type
  @name   = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end