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.



125
126
127
# File 'lib/crokus/ast.rb', line 125

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



124
125
126
# File 'lib/crokus/ast.rb', line 124

def name
  @name
end

#typeObject

Returns the value of attribute type.



124
125
126
# File 'lib/crokus/ast.rb', line 124

def type
  @type
end