Class: Astrapi::Attr

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, type) ⇒ Attr

Returns a new instance of Attr.



26
27
28
# File 'lib/ast.rb', line 26

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



25
26
27
# File 'lib/ast.rb', line 25

def name
  @name
end

#typeObject

Returns the value of attribute type.



25
26
27
# File 'lib/ast.rb', line 25

def type
  @type
end