Class: PureData::Inlet

Inherits:
IOlet
  • Object
show all
Defined in:
lib/puredata/connection.rb

Instance Attribute Summary

Attributes inherited from IOlet

#idx

Instance Method Summary collapse

Methods inherited from IOlet

#canvas, #check_canvas, #initialize, #name, #pair, #pdobjid

Constructor Details

This class inherits a constructor from PureData::IOlet

Instance Method Details

#<<(other) ⇒ Object



42
43
44
45
46
47
48
49
# File 'lib/puredata/connection.rb', line 42

def <<(other)
  if other.is_a?(PdObject)
    other = other.outlet
  end
  check_canvas(other)
  @obj.canvas.connect(other, self)
  other
end

#inlet_tupleObject



38
39
40
# File 'lib/puredata/connection.rb', line 38

def inlet_tuple
  [@obj, @idx]
end