Class: Sexpir::Signal
- Defined in:
- lib/sexpir/ast.rb,
lib/sexpir/ast_sexp.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#bits_sign ⇒ Object
Returns the value of attribute bits_sign.
-
#max ⇒ Object
Returns the value of attribute max.
-
#min ⇒ Object
Returns the value of attribute min.
-
#name ⇒ Object
Returns the value of attribute name.
-
#name_override ⇒ Object
Returns the value of attribute name_override.
-
#reset ⇒ Object
Returns the value of attribute reset.
-
#reset_less ⇒ Object
Returns the value of attribute reset_less.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Ast
Instance Method Summary collapse
Methods inherited from Ast
Instance Attribute Details
#bits_sign ⇒ Object
Returns the value of attribute bits_sign.
21 22 23 |
# File 'lib/sexpir/ast.rb', line 21 def bits_sign @bits_sign end |
#max ⇒ Object
Returns the value of attribute max.
25 26 27 |
# File 'lib/sexpir/ast.rb', line 25 def max @max end |
#min ⇒ Object
Returns the value of attribute min.
25 26 27 |
# File 'lib/sexpir/ast.rb', line 25 def min @min end |
#name ⇒ Object
Returns the value of attribute name.
20 21 22 |
# File 'lib/sexpir/ast.rb', line 20 def name @name end |
#name_override ⇒ Object
Returns the value of attribute name_override.
24 25 26 |
# File 'lib/sexpir/ast.rb', line 24 def name_override @name_override end |
#reset ⇒ Object
Returns the value of attribute reset.
22 23 24 |
# File 'lib/sexpir/ast.rb', line 22 def reset @reset end |
#reset_less ⇒ Object
Returns the value of attribute reset_less.
23 24 25 |
# File 'lib/sexpir/ast.rb', line 23 def reset_less @reset_less end |
#type ⇒ Object
Returns the value of attribute type.
20 21 22 |
# File 'lib/sexpir/ast.rb', line 20 def type @type end |
Instance Method Details
#sexp ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/sexpir/ast_sexp.rb', line 33 def sexp attrs=instance_variables.map do |ivar| var=ivar[1..-1] value=instance_variable_get(ivar) "(#{var} #{value})" end.join(' ') "(signal #{attrs})" end |