Class: Astrapi::Klass

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ast

#accept

Constructor Details

#initialize(name, inheritance = nil, attrs = []) ⇒ Klass

Returns a new instance of Klass.



19
20
21
# File 'lib/ast.rb', line 19

def initialize name,inheritance=nil,attrs=[]
  @name,@inheritance,@attrs=name,inheritance,attrs
end

Instance Attribute Details

#attrsObject

Returns the value of attribute attrs.



18
19
20
# File 'lib/ast.rb', line 18

def attrs
  @attrs
end

#inheritanceObject

Returns the value of attribute inheritance.



18
19
20
# File 'lib/ast.rb', line 18

def inheritance
  @inheritance
end

#nameObject

Returns the value of attribute name.



18
19
20
# File 'lib/ast.rb', line 18

def name
  @name
end