Sha256: 4876b8f7d7946a58c8c7bb848966f7f4ec94452a0dbb557c6b94f85fe69bd3b7

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 Bytes

Contents

require 'chronic/handlers/time_zone'

module Chronic
  class TimeZoneObject < HandlerObject
    include TimeZoneStructure

    def initialize(tokens, token_index, definitions, local_date, options)
      super
      match(tokens, @index, definitions)
    end

    def normalize!
      return if @normalized
      @offset = to_offset
      @normalized = true
    end

    def is_valid?
      true
    end

    protected

    include TimeZoneHandlers

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chronic-davispuh-0.10.2.v0.1da32066b3f46f2506b3471e39557497e34afa27 lib/chronic/objects/time_zone_object.rb