Class: Sexpir::Connect

Inherits:
Ast
  • Object
show all
Defined in:
lib/sexpir/ast.rb,
lib/sexpir/ast_sexp.rb

Instance Attribute Summary collapse

Attributes inherited from Ast

#node

Instance Method Summary collapse

Methods inherited from Ast

#accept

Instance Attribute Details

#sinkObject

Returns the value of attribute sink.



92
93
94
# File 'lib/sexpir/ast.rb', line 92

def sink
  @sink
end

#sourceObject

Returns the value of attribute source.



92
93
94
# File 'lib/sexpir/ast.rb', line 92

def source
  @source
end

Instance Method Details

#sexpObject



179
180
181
# File 'lib/sexpir/ast_sexp.rb', line 179

def sexp
  "(connect #{source.sexp} #{sink.sexp})"
end