Sha256: 3d0d602a76a7d77a83191260b1019fb930977e4d52ed0cca29a819f924310768

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

require 'chronic/handlers/general'

module Chronic
  module AnchorHandlers
    include GeneralHandlers
    # Handle grabber/time_special
    # formats: gr ts
    def handle_gr_ts
      handle_gr
      handle_possible(SeparatorSpace)
      handle_ts
    end

    # Handle grabber/day-name
    # formats: gr dn
    def handle_gr_dn
      handle_gr
      next_tag
      handle_dn
    end

    # Handle grabber/month-name
    # formats: gr mn
    def handle_gr_mn
      handle_gr
      next_tag
      handle_mn
    end

    # Handle grabber/season-name
    # formats: gr sn
    def handle_gr_sn
      handle_gr
      next_tag
      handle_sn
    end

    # Handle grabber/unit
    # formats: gr u
    def handle_gr_u
      handle_gr
      next_tag
      handle_u
    end

    # Handle keyword-in/scalar/unit
    # formats: in s u
    def handle_in_s_u
      next_tag
      next_tag
      handle_s
      next_tag
      handle_u
    end

    # Handle grabber/keyword-q/scalar
    # formats: gr Qs
    def handle_gr_q_s
      handle_gr
      next_tag
      handle_q_s
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chronic-davispuh-0.10.2.v0.1da32066b3f46f2506b3471e39557497e34afa27 lib/chronic/handlers/anchor.rb