Class: PureData::IOlet
- Inherits:
-
Object
- Object
- PureData::IOlet
- Defined in:
- lib/puredata/connection.rb
Instance Attribute Summary collapse
-
#idx ⇒ Object
readonly
Returns the value of attribute idx.
Instance Method Summary collapse
- #canvas ⇒ Object
- #check_canvas(other) ⇒ Object
-
#initialize(obj, idx = 0) ⇒ IOlet
constructor
A new instance of IOlet.
- #name ⇒ Object
- #pair ⇒ Object
- #pdobjid ⇒ Object
Constructor Details
#initialize(obj, idx = 0) ⇒ IOlet
Returns a new instance of IOlet.
7 8 9 10 |
# File 'lib/puredata/connection.rb', line 7 def initialize(obj, idx=0) @obj = obj @idx = idx end |
Instance Attribute Details
#idx ⇒ Object (readonly)
Returns the value of attribute idx.
12 13 14 |
# File 'lib/puredata/connection.rb', line 12 def idx @idx end |
Instance Method Details
#canvas ⇒ Object
14 15 16 |
# File 'lib/puredata/connection.rb', line 14 def canvas @obj.canvas end |
#check_canvas(other) ⇒ Object
26 27 28 29 30 |
# File 'lib/puredata/connection.rb', line 26 def check_canvas(other) unless @obj.canvas == other.canvas raise "#{@obj.name} and #{other.name} must be in same canvas" end end |
#name ⇒ Object
22 23 24 |
# File 'lib/puredata/connection.rb', line 22 def name @obj.name end |
#pair ⇒ Object
32 33 34 |
# File 'lib/puredata/connection.rb', line 32 def pair [@obj, @idx] end |
#pdobjid ⇒ Object
18 19 20 |
# File 'lib/puredata/connection.rb', line 18 def pdobjid @obj.pdobjid end |