Class: TypeDef

Inherits:
Def
  • Object
show all
Defined in:
lib/runtime.rb

Direct Known Subclasses

BuiltinTypeDef, EnumTypeDef, StructTypeDef

Instance Attribute Summary collapse

Attributes inherited from Def

#ast

Instance Method Summary collapse

Constructor Details

#initialize(ast, name) ⇒ TypeDef

Returns a new instance of TypeDef.



14
15
16
17
# File 'lib/runtime.rb', line 14

def initialize ast, name
  super ast
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



12
13
14
# File 'lib/runtime.rb', line 12

def name
  @name
end