Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/lite/measurements/monkey_patches/mass.rb,
lib/lite/measurements/monkey_patches/time.rb,
lib/lite/measurements/monkey_patches/length.rb,
lib/lite/measurements/monkey_patches/temperature.rb,
lib/lite/measurements/monkey_patches/digital_storage.rb

Instance Method Summary collapse

Instance Method Details

#convert_digital_storage(from:, to:) ⇒ Object



5
6
7
# File 'lib/lite/measurements/monkey_patches/digital_storage.rb', line 5

def convert_digital_storage(from:, to:)
  Lite::Measurements::DigitalStorage.convert(self, from: from, to: to)
end

#convert_length(from:, to:) ⇒ Object



5
6
7
# File 'lib/lite/measurements/monkey_patches/length.rb', line 5

def convert_length(from:, to:)
  Lite::Measurements::Length.convert(self, from: from, to: to)
end

#convert_mass(from:, to:) ⇒ Object



5
6
7
# File 'lib/lite/measurements/monkey_patches/mass.rb', line 5

def convert_mass(from:, to:)
  Lite::Measurements::Mass.convert(self, from: from, to: to)
end

#convert_temperature(from:, to:) ⇒ Object



5
6
7
# File 'lib/lite/measurements/monkey_patches/temperature.rb', line 5

def convert_temperature(from:, to:)
  Lite::Measurements::Temperature.convert(self, from: from, to: to)
end

#convert_time(from:, to:) ⇒ Object



5
6
7
# File 'lib/lite/measurements/monkey_patches/time.rb', line 5

def convert_time(from:, to:)
  Lite::Measurements::Time.convert(self, from: from, to: to)
end