class Quadtone::Sample
Attributes
error[RW]
input[RW]
label[RW]
output[RW]
Public Class Methods
new(params={})
click to toggle source
# File lib/quadtone/sample.rb, line 10 def initialize(params={}) params.each { |key, value| send("#{key}=", value) } end
Public Instance Methods
input_value()
click to toggle source
# File lib/quadtone/sample.rb, line 14 def input_value @input.value end
output_value()
click to toggle source
# File lib/quadtone/sample.rb, line 18 def output_value @output.value end
to_s()
click to toggle source
# File lib/quadtone/sample.rb, line 22 def to_s "%s / %s%s" % [ input, output, label ? " [#{label}]" : '', ] end