Class: PM::MockOutputPort
- Inherits:
-
Object
- Object
- PM::MockOutputPort
- Defined in:
- lib/patchmaster/instrument.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
Returns the value of attribute buffer.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(port_num) ⇒ MockOutputPort
constructor
A new instance of MockOutputPort.
- #puts(data) ⇒ Object
Constructor Details
#initialize(port_num) ⇒ MockOutputPort
Returns a new instance of MockOutputPort.
128 129 130 131 |
# File 'lib/patchmaster/instrument.rb', line 128 def initialize(port_num) @name = "MockOutputPort #{port_num}" @buffer = [] end |
Instance Attribute Details
#buffer ⇒ Object
Returns the value of attribute buffer.
126 127 128 |
# File 'lib/patchmaster/instrument.rb', line 126 def buffer @buffer end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
125 126 127 |
# File 'lib/patchmaster/instrument.rb', line 125 def name @name end |
Instance Method Details
#puts(data) ⇒ Object
133 134 |
# File 'lib/patchmaster/instrument.rb', line 133 def puts(data) end |