Carlo Cabrera a76c33f7bb
extend/kernel: tighten up some type signatures
Allowing either `Formula`e or `String`s in these methods leads to errors
at runtime when one hasn't done `require "formula"` yet.

Let's tighten these up so that they only accept `Formula` arguments to
guarantee that `require "formula"` has been done before they are called.
For callers that need to pass a `String`, we update them to call a
version of these methods that accepts only `String`s.

See discussion at #20352.
2025-08-02 01:59:46 +08:00
..
2025-07-15 13:34:49 -04:00
2025-07-31 05:40:40 +01:00
2025-07-30 12:43:32 -07:00
2025-07-02 00:17:54 +00:00
2025-06-17 16:33:58 +01:00
2025-07-16 11:32:22 -04:00
2025-07-14 19:12:38 +01:00
2025-07-14 19:12:38 +01:00
2025-07-14 19:12:38 +01:00
2025-07-14 19:12:38 +01:00
2025-04-23 10:09:45 +02:00
2025-08-01 00:37:45 +00:00
2025-07-25 16:10:50 +00:00
2025-07-14 19:12:38 +01:00
2025-07-16 08:58:14 -07:00
2025-07-21 09:10:06 +01:00
2025-07-14 19:12:38 +01:00
2025-06-09 19:06:16 +01:00
2025-07-14 19:12:38 +01:00
2025-04-23 10:09:45 +02:00
2025-04-15 23:02:00 +01:00
2025-07-14 19:12:38 +01:00
2025-07-31 12:21:19 +01:00
2025-07-31 17:31:27 +01:00
2025-07-31 12:21:19 +01:00
2025-04-22 11:50:08 -07:00
2025-07-25 17:06:11 +01:00
2025-07-14 19:12:38 +01:00
2025-07-31 17:31:27 +01:00
2025-07-14 19:12:38 +01:00
2025-06-09 19:06:16 +01:00
2025-06-23 16:50:39 +01:00
2025-04-16 16:22:36 +01:00
2025-07-27 10:07:34 -07:00
2025-06-09 19:06:16 +01:00
2025-06-29 09:02:24 -07:00
2025-07-27 10:07:34 -07:00
2025-06-09 19:06:16 +01:00
2025-07-28 21:14:23 -07:00
2025-07-14 19:12:38 +01:00
2025-07-14 19:12:38 +01:00
2025-07-31 17:31:27 +01:00
2025-07-14 19:12:38 +01:00

Homebrew Ruby API

This is the API for Homebrew.

The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private.

You may also find the Formula Cookbook and Ruby Style Guide helpful in creating formulae.

Good luck!