Class: Fixnum

Inherits:
Object show all
Defined in:
lib/motel/common.rb

Overview

We extend Fixnum so we don't need to distinguish between an int and float to use round_to

Instance Method Summary collapse

Instance Method Details

#round_to(precision) ⇒ Object

Returns self (fixnums are always rounded)


315
316
317
# File 'lib/motel/common.rb', line 315

def round_to(precision)
  return self
end