Extended NilClass with empty? method.

This commit is contained in:
Martin Edenhofer 2016-02-19 23:34:57 +01:00
parent d54bb4fa05
commit e0ec2fbd12

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

@ -0,0 +1,17 @@
class NilClass
=begin
result = nil.empty?
result
true
=end
def empty?
true
end
end