Class: Sexpir::Input
- Defined in:
- lib/sexpir/ast.rb,
lib/sexpir/ast_sexp.rb
Instance Attribute Summary
Attributes inherited from Signal
#bits_sign, #max, #min, #name, #name_override, #reset, #reset_less, #type
Attributes inherited from Ast
Instance Method Summary collapse
Methods inherited from Ast
Instance Method Details
#sexp ⇒ Object
50 51 52 53 54 55 56 57 |
# File 'lib/sexpir/ast_sexp.rb', line 50 def sexp attrs=instance_variables.map do |ivar| var=ivar[1..-1] value=instance_variable_get(ivar) "(#{var} #{value})" end.join(' ') "(input #{attrs})" end |