Sha256: c684dc8299511c0de6c4746ef52cc245ddb39bf7143b1e8dd9d631b4dc62c897

Contents?: true

Size: 335 Bytes

Versions: 2

Compression:

Stored size: 335 Bytes

Contents

require "time"
require "date"
require "active_support/time"

require "time_range_extractor/match_result"
require "time_range_extractor/parser"
require "time_range_extractor/version"

module TimeRangeExtractor
  class Error < StandardError; end

  def self.call(text, date: Date.current)
    Parser.new(text, date: date).call
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
time_range_extractor-0.1.1 lib/time_range_extractor.rb
time_range_extractor-0.1.0 lib/time_range_extractor.rb