Sha256: 270ccf7ef19dfe13cd7a19491f89cd5c2532b93581ca8cc609fb1c03ad9a4e26
Contents?: true
Size: 419 Bytes
Versions: 125
Compression:
Stored size: 419 Bytes
Contents
# frozen_string_literal: true class ReeDatetime::FindTzinfo include Ree::FnDSL fn :find_tzinfo do link 'ree_datetime/functions/constants', -> { ZONE_HUMAN_NAMES } end doc("Returns an individual time zone accroding to the +name+ parameter") contract(String => TZInfo::Timezone).throws(TZInfo::InvalidTimezoneIdentifier) def call(name) TZInfo::Timezone.get(ZONE_HUMAN_NAMES[name] || name) end end
Version data entries
125 entries across 125 versions & 1 rubygems