Sha256: 8613bbfbc08bebbd7e952af2a211b9f9c4436455ed7c7bee98656728cf90676c
Contents?: true
Size: 224 Bytes
Versions: 13
Compression:
Stored size: 224 Bytes
Contents
class NilClass unless method_defined?(:to_f) # Allows <tt>nil</tt> to respond to #to_f. # Always returns <tt>0</tt>. # # nil.to_f #=> 0.0 # # CREDIT: Matz def to_f; 0.0; end end end
Version data entries
13 entries across 12 versions & 1 rubygems