lib/dbf/table.rb in dbf-1.1.2 vs lib/dbf/table.rb in dbf-1.2.0
- old
+ new
@@ -118,9 +118,15 @@
end
s
end
+ def to_a
+ records = []
+ each {|record| records << record if record}
+ records
+ end
+
# Dumps all records to a CSV file. If no filename is given then CSV is
# output to STDOUT.
#
# @param [optional String] path Defaults to basename of dbf file
def to_csv(path = nil)
\ No newline at end of file