Extended Fixum class with empty? to have an easier content validation.

This commit is contained in:
Martin Edenhofer 2016-08-23 21:45:39 +02:00
parent 8f8bfb60b8
commit 828cdd0347

17
lib/core_ext/fixnum.rb Normal file
View file

@ -0,0 +1,17 @@
class Fixnum
=begin
result = 5.empty?
result
false
=end
def empty?
false
end
end