Skip to content

Commit a376cc2

Browse files
committed
Mark TimeZone TZInfo quacking methods as :nodoc:
1 parent edc7018 commit a376cc2

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

activesupport/lib/active_support/values/time_zone.rb

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -552,31 +552,23 @@ def local_to_utc(time, dst = true)
552552
tzinfo.local_to_utc(time, dst)
553553
end
554554

555-
# Available so that TimeZone instances respond like +TZInfo::Timezone+
556-
# instances.
557-
def period_for_utc(time)
555+
def period_for_utc(time) # :nodoc:
558556
tzinfo.period_for_utc(time)
559557
end
560558

561-
# Available so that TimeZone instances respond like +TZInfo::Timezone+
562-
# instances.
563-
def period_for_local(time, dst = true)
559+
def period_for_local(time, dst = true) # :nodoc:
564560
tzinfo.period_for_local(time, dst) { |periods| periods.last }
565561
end
566562

567563
def periods_for_local(time) # :nodoc:
568564
tzinfo.periods_for_local(time)
569565
end
570566

571-
# Available so that TimeZone instances respond like +TZInfo::Timezone+
572-
# instances.
573-
def abbr(time)
567+
def abbr(time) # :nodoc:
574568
tzinfo.abbr(time)
575569
end
576570

577-
# Available so that TimeZone instances respond like +TZInfo::Timezone+
578-
# instances.
579-
def dst?(time)
571+
def dst?(time) # :nodoc:
580572
tzinfo.dst?(time)
581573
end
582574

0 commit comments

Comments
 (0)