Sha256: 6db8022bc0c188316e6b58deadad48d83eed7d8f370019bc23b35cdb2d7a4cb6
Contents?: true
Size: 491 Bytes
Versions: 12
Compression:
Stored size: 491 Bytes
Contents
# encoding: UTF-8 module SportDb class TeamMapper def initialize( recs ) @mapper = TextUtils::TitleMapper2.new( recs, 'team' ) end def find_teams!( line ) # Note: returns an array - note: plural! (teamsssss) @mapper.find_keys!( line ) end def find_team!( line ) # Note: returns key (string or nil) @mapper.find_key!( line ) end def map_teams!( line ) @mapper.map_titles!( line ) end end # class TeamMapper end # module SportDb
Version data entries
12 entries across 12 versions & 1 rubygems