Sha256: 48cab6da2b91ab9f68003de68524541888783f2016c960231b7c288a4854bff7
Contents?: true
Size: 661 Bytes
Versions: 3
Compression:
Stored size: 661 Bytes
Contents
# encoding: utf-8 module SportDb module FixtureHelpers def is_postponed?( line ) # check if line include postponed marker e.g. => line =~ /=>/ end def find_date!( line, opts={} ) ## NB: lets us pass in start_at/end_at date (for event) # for auto-complete year # extract date from line # and return it # NB: side effect - removes date from line string finder = DateFinder.new finder.find!( line, opts ) end def find_rsssf_date!( line, opts={} ) finder = RsssfDateFinder.new finder.find!( line, opts ) end end # module FixtureHelpers end # module SportDb
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sportdb-models-1.15.0 | lib/sportdb/utils_date.rb |
sportdb-models-1.14.2 | lib/sportdb/utils_date.rb |
sportdb-models-1.14.1 | lib/sportdb/utils_date.rb |