Sha256: 8a807aa9c914d27c05e79eb63da7d650d1f899bbfc1127580421b9289c720c8e
Contents?: true
Size: 290 Bytes
Versions: 26
Compression:
Stored size: 290 Bytes
Contents
# frozen_string_literal: true NilClass.class_eval do # :nodoc: def to_dec(*_args) nil end end Numeric.class_eval do # :nodoc: def to_dec(p = 4) (to_f / 100.0).round(p) end end String.class_eval do # :nodoc: def to_dec(p = 4) (to_f / 100.0).round(p) end end
Version data entries
26 entries across 26 versions & 2 rubygems