Class: PM::MockOutputPort

Inherits:
Object
  • Object
show all
Defined in:
lib/patchmaster/instrument.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bufferObject

Returns the value of attribute buffer.



126
127
128
# File 'lib/patchmaster/instrument.rb', line 126

def buffer
  @buffer
end

#nameObject (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