Permalink
Browse files

Remove module, just made things hard to work with

  • Loading branch information...
1 parent bbb9c1a commit 7413bbdef4cff6e9c24da1bb6a1184d802ab6ecb @coreyhaines coreyhaines committed May 16, 2011
Showing with 5 additions and 7 deletions.
  1. +5 −7 reader_csv.rb
View
12 reader_csv.rb
@@ -1,10 +1,11 @@
-module Readers
- module CSV
- def read_events file_name
+require 'csv'
+require 'time'
+load 'codeevent.rb'
+ def self.read_events file_name
first_row = true
names = []
events = []
- CSV.foreach(file_name + ".csv") do |row|
+ ::CSV.foreach(file_name + ".csv") do |row|
if first_row
names = row
first_row = false
@@ -25,6 +26,3 @@ def read_events file_name
end
events
end
-
- end
-end

0 comments on commit 7413bbd

Please sign in to comment.