Module: Eletro

Defined in:
lib/eletro/resistor.rb,
lib/eletro.rb,
lib/eletro/ic.rb,
lib/eletro/ohm.rb,
lib/eletro/part.rb,
lib/eletro/wire.rb,
lib/eletro/diode.rb,
lib/eletro/logic.rb,
lib/eletro/source.rb,
lib/eletro/inductor.rb,
lib/eletro/capacitor.rb,
lib/eletro/transistor.rb,
lib/eletro/helpers/color_code.rb

Overview

eletric 220 eletric RRO

Defined Under Namespace

Modules: ColorCode Classes: Capacitor, Diode, IC, Inductor, LED, Logic, Ohm, Part, Resistor, Source, Transistor, Wire

Constant Summary collapse

COLOR =
true

Class Method Summary collapse

Class Method Details

.do_your_thing(args) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/eletro.rb', line 19

def self.do_your_thing(args)
  params = args.join
  if params =~ /A|mA/  # need to improve
  else
    puts Resistor.new(params).pretty_output
  end
end