Class: Sexpir::Port
- Defined in:
- lib/sexpir/ast.rb,
lib/sexpir/ast_sexp.rb
Instance Attribute Summary collapse
-
#component_name ⇒ Object
Returns the value of attribute component_name.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Signal
#bits_sign, #max, #min, #name_override, #reset, #reset_less, #type
Attributes inherited from Ast
Instance Method Summary collapse
Methods inherited from Ast
Instance Attribute Details
#component_name ⇒ Object
Returns the value of attribute component_name.
32 33 34 |
# File 'lib/sexpir/ast.rb', line 32 def component_name @component_name end |
#name ⇒ Object
Returns the value of attribute name.
32 33 34 |
# File 'lib/sexpir/ast.rb', line 32 def name @name end |
Instance Method Details
#sexp ⇒ Object
44 45 46 |
# File 'lib/sexpir/ast_sexp.rb', line 44 def sexp "(port #{component_name} #{name})" end |