Class: Sexpir::Port

Inherits:
Io show all
Defined in:
lib/sexpir/ast.rb,
lib/sexpir/ast_sexp.rb

Instance Attribute Summary collapse

Attributes inherited from Signal

#bits_sign, #max, #min, #name_override, #reset, #reset_less, #type

Attributes inherited from Ast

#node

Instance Method Summary collapse

Methods inherited from Ast

#accept

Instance Attribute Details

#component_nameObject

Returns the value of attribute component_name.



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

def component_name
  @component_name
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#sexpObject



44
45
46
# File 'lib/sexpir/ast_sexp.rb', line 44

def sexp
  "(port #{component_name} #{name})"
end