Class: Crokus::Typedef

Inherits:
Ast
  • Object
show all
Defined in:
lib/crokus/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ast

#accept, #str

Constructor Details

#initialize(type, name) ⇒ Typedef

Returns a new instance of Typedef.



129
130
131
# File 'lib/crokus/ast.rb', line 129

def initialize type,name
  @type,@name=type,name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



128
129
130
# File 'lib/crokus/ast.rb', line 128

def name
  @name
end

#typeObject

Returns the value of attribute type.



128
129
130
# File 'lib/crokus/ast.rb', line 128

def type
  @type
end