
This reduces the surface area of our `Kernel` monkeypatch and removes the need to `include Kernel` in a bunch of modules. While we're here, also move `Kernel#require?` to `Homebrew` and fully scope the calls to it.
17 lines
320 B
Ruby
17 lines
320 B
Ruby
# typed: strong
|
|
# frozen_string_literal: true
|
|
|
|
require "time"
|
|
require "utils/output"
|
|
|
|
class Time
|
|
include Utils::Output::Mixin
|
|
|
|
# Backwards compatibility for formulae that used this ActiveSupport extension
|
|
sig { returns(String) }
|
|
def rfc3339
|
|
odisabled "Time#rfc3339", "Time#xmlschema"
|
|
xmlschema
|
|
end
|
|
end
|