Skip to content

Commit 094aeca

Browse files
authored
Merge pull request rails#53367 from seanpdoyle/time-zone-api-docs-class-inference
Prevent `ActiveSupport::TimeZone` documentation class inferences [ci skip]
2 parents 3155030 + cf9eb29 commit 094aeca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

activesupport/lib/active_support/values/time_zone.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module ActiveSupport
1212
# * Limit the set of zones provided by TZInfo to a meaningful subset of 134
1313
# zones.
1414
# * Retrieve and display zones with a friendlier name
15-
# (e.g., "Eastern Time (US & Canada)" instead of "America/New_York").
15+
# (e.g., "Eastern \Time (US & Canada)" instead of "America/New_York").
1616
# * Lazily load +TZInfo::Timezone+ instances only when they're needed.
1717
# * Create ActiveSupport::TimeWithZone instances via TimeZone's +local+,
1818
# +parse+, +at+, and +now+ methods.
@@ -355,7 +355,7 @@ def to_s
355355
"(GMT#{formatted_offset}) #{name}"
356356
end
357357

358-
# Method for creating new ActiveSupport::TimeWithZone instance in time zone
358+
# \Method for creating new ActiveSupport::TimeWithZone instance in time zone
359359
# of +self+ from given values.
360360
#
361361
# Time.zone = 'Hawaii' # => "Hawaii"
@@ -365,7 +365,7 @@ def local(*args)
365365
ActiveSupport::TimeWithZone.new(nil, self, time)
366366
end
367367

368-
# Method for creating new ActiveSupport::TimeWithZone instance in time zone
368+
# \Method for creating new ActiveSupport::TimeWithZone instance in time zone
369369
# of +self+ from number of seconds since the Unix epoch.
370370
#
371371
# Time.zone = 'Hawaii' # => "Hawaii"
@@ -380,7 +380,7 @@ def at(*args)
380380
Time.at(*args).utc.in_time_zone(self)
381381
end
382382

383-
# Method for creating new ActiveSupport::TimeWithZone instance in time zone
383+
# \Method for creating new ActiveSupport::TimeWithZone instance in time zone
384384
# of +self+ from an ISO 8601 string.
385385
#
386386
# Time.zone = 'Hawaii' # => "Hawaii"
@@ -432,7 +432,7 @@ def iso8601(str)
432432
raise ArgumentError, "invalid date"
433433
end
434434

435-
# Method for creating new ActiveSupport::TimeWithZone instance in time zone
435+
# \Method for creating new ActiveSupport::TimeWithZone instance in time zone
436436
# of +self+ from parsed string.
437437
#
438438
# Time.zone = 'Hawaii' # => "Hawaii"
@@ -454,7 +454,7 @@ def parse(str, now = now())
454454
parts_to_time(Date._parse(str, false), now)
455455
end
456456

457-
# Method for creating new ActiveSupport::TimeWithZone instance in time zone
457+
# \Method for creating new ActiveSupport::TimeWithZone instance in time zone
458458
# of +self+ from an RFC 3339 string.
459459
#
460460
# Time.zone = 'Hawaii' # => "Hawaii"

0 commit comments

Comments
 (0)