lib/ruby_wings.rb in ruby_wings-0.1.1 vs lib/ruby_wings.rb in ruby_wings-0.2.0
- old
+ new
@@ -12,12 +12,26 @@
def blank?
empty?
end
end
-class ::Fixnum
- def blank?
- false
+if 1.is_a? Integer
+ class ::Integer
+ def blank?
+ false
+ end
+ end
+else
+ class ::Fixnum
+ def blank?
+ false
+ end
+ end
+
+ class ::Bignum
+ def blank?
+ false
+ end
end
end
# Allow recursive merging of Hashes
# thanks to http://stackoverflow.com/a/25990044