Module: OSCAccess::Analog

Defined in:
lib/osc-access/translate.rb

Defined Under Namespace

Modules: Input, Output

Class Method Summary collapse

Class Method Details

.new(from, to, options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/osc-access/translate.rb', line 6

def self.new(from, to, options = {})
  case to
    when Array then Output::Set.new(Input.new(from), to, options)
    when ::Range then Output::Range.new(Input.new(from), to, options)
  end
end