Module: Brewby::Outputs

Defined in:
lib/brewby/outputs.rb,
lib/brewby/outputs/gpio.rb,
lib/brewby/outputs/test.rb

Defined Under Namespace

Classes: GPIO, Test

Class Method Summary collapse

Class Method Details

.adapter_class(adapter) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/brewby/outputs.rb', line 6

def self.adapter_class adapter
  case adapter
  when :test
    Brewby::Outputs::Test
  else
    Brewby::Outputs::GPIO
  end
end