Class: Astrapi::Type

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

Direct Known Subclasses

ArrayOf

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ast

#accept

Constructor Details

#initialize(name) ⇒ Type

Returns a new instance of Type.



33
34
35
# File 'lib/ast.rb', line 33

def initialize name
  @name=name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



32
33
34
# File 'lib/ast.rb', line 32

def name
  @name
end

Instance Method Details

#==(other) ⇒ Object



37
38
39
# File 'lib/ast.rb', line 37

def ==(other)
  name==other.name
end