Sha256: 16ca8cb07995337c1690e167bc675561c4b71f3c3820dce9fd761bccdc1a9fd9

Contents?: true

Size: 318 Bytes

Versions: 1

Compression:

Stored size: 318 Bytes

Contents

require "timeparser/version"
require 'polyglot'
require 'treetop'
Treetop.load File.join(File.dirname(__FILE__), 'timeparser/timeparsing.treetop')

module Timeparser
  class Parser
    def parser
      @parser ||= TimeparsingParser.new
    end

    def parse(string)
      parser.parse(string).value
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
timeparser-0.0.1 lib/timeparser.rb