Sha256: 34f4b8870d02b3336b91fc47e7d38fe4b1d7449afa7d3c13b1d1c1d1670880c2
Contents?: true
Size: 1.06 KB
Versions: 33
Compression:
Stored size: 1.06 KB
Contents
# encoding: utf-8 module SportDb module FixtureHelpers def find_ground!( line ) TextUtils.find_key_for!( 'ground', line ) end ## todo/fix: pass in known_grounds as a parameter? why? why not? ### todo/fix: ## remove =nil in para - make param required w/o fallback def map_ground!( line, known_grounds=nil ) if known_grounds.nil? puts "depreciated API call map_ground! (pass in mapping table as 2nd param)" known_grounds = @known_grounds end TextUtils.map_titles_for!( 'ground', line, known_grounds ) end def find_person!( line ) TextUtils.find_key_for!( 'person', line ) end ### todo/fix: ## remove =nil in para - make param required w/o fallback def map_person!( line, known_persons=nil ) if known_persons.nil? puts "depreciated API call map_person! (pass in mapping table as 2nd param)" known_persons = @known_persons end TextUtils.map_titles_for!( 'person', line, known_persons ) end end # module FixtureHelpers end # module SportDb
Version data entries
33 entries across 33 versions & 2 rubygems