lib/sportdb/reader_file.rb in sportdb-models-1.15.2 vs lib/sportdb/reader_file.rb in sportdb-models-1.16.0

- old
+ new

@@ -82,9 +82,17 @@ logger.info "parsing data (event) '#{name}' (#{path})..." EventReader.from_file( path, more_attribs ) end + def create_event_table_reader( name, more_attribs={} ) + real_name = name_to_real_name( name ) + path = "#{@include_path}/#{real_name}.txt" + + logger.info "parsing data (event table) '#{name}' (#{path})..." + EventTableReader.from_file( path, more_attribs ) + end + def create_game_reader( name, more_attribs={} ) real_name = name_to_real_name( name ) ## NOTE: pass in .yml as path (that is, event config!!!!) path = "#{@include_path}/#{real_name}.yml"