Sha256: 1a06333e9d76d0627cbcb7e29b8b705543574bef833d9290e256215274cbf59d

Contents?: true

Size: 280 Bytes

Versions: 3

Compression:

Stored size: 280 Bytes

Contents

class Float
  # Alias for #round. This is used by both the 
  # improved #round method and #round_to.
  alias_method :round_off, :round
end

class Numeric
  # To properly support Float's rounding methods,
  # Numeric must also be augmented.
  alias_method :round_off, :round
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
facets-0.7.0 lib/facet/float/round_off.rb
facets-0.7.1 lib/facet/float/round_off.rb
facets-0.7.2 lib/facet/float/round_off.rb