Method: Measured::Arithmetic#to_i

Defined in:
lib/measured/arithmetic.rb

#to_iObject

Raises:

  • (TypeError)


32
33
34
# File 'lib/measured/arithmetic.rb', line 32

def to_i
  raise TypeError, "#{self.class} cannot be converted to an integer"
end