Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/strom/numeric.rb
Instance Method Summary collapse
Instance Method Details
#amperes ⇒ Object
2 3 4 |
# File 'lib/strom/numeric.rb', line 2 def amperes Ampere.new(self.to_f) end |
#ohms ⇒ Object
6 7 8 |
# File 'lib/strom/numeric.rb', line 6 def ohms Ohm.new(self.to_f) end |
#volts ⇒ Object
10 11 12 |
# File 'lib/strom/numeric.rb', line 10 def volts Volt.new(self.to_f) end |