module Resistor
Constants
- VERSION
Public Class Methods
new(arg, options = {})
click to toggle source
Alias for Resistor::BasicResistor.new
@see Resistor::BasicResistor
@return [Resistor::BasicResistor] @example Create a Resistor::BasicResistor
object.
r1 = Resistor.new(20) r2 = Resistor.new(['yellow', 'purple', 'red', 'gold'])
# File lib/resistor.rb, line 17 def new(arg, options = {}) Resistor::BasicResistor.new(arg, options) end