lib/iron/extensions/array.rb in iron-extensions-1.2.0 vs lib/iron/extensions/array.rb in iron-extensions-1.2.1
- old
+ new
@@ -2,7 +2,11 @@
# Join an array's values ignoring blank entries
def list_join(sep = ', ')
self.select{|e| !e.blank?}.join(sep)
end
+
+ def blank?
+ empty?
+ end
end