Sam Ford cf79ced740
Rework how strategy constants are identified
Up to this point, we've had to rely on making `Strategy` constants
private to ensure that the only available constants are strategies.
With the current setup, the existence of a constant that's not a
strategy would break `Strategy#strategies` and
`Livecheck#livecheck_strategy_names`.

Instead, we can achieve the same goal by skipping over constants
that aren't a class. Other than saving us from having to make these
constants private, this is necessary to be able to create a
`Strategy` constant that can be used in all strategies.
2021-08-11 18:25:34 -04:00
..
2021-08-09 00:06:27 +00:00
2021-08-11 18:10:53 +00:00
2021-08-11 18:08:35 +00:00
2021-08-06 14:03:00 +01:00
2021-05-12 13:37:18 +01:00
2021-05-08 11:20:01 +10:00
2021-05-02 00:29:01 +01:00
2021-05-08 11:20:01 +10:00
2021-07-19 10:02:19 +08:00
2021-08-09 02:21:45 +09:00
2021-05-04 11:30:14 -04:00
2021-06-15 12:52:39 +01:00
2021-06-11 20:02:31 +05:30
2021-06-22 18:06:52 +01:00
2021-07-05 11:45:15 -04:00
2021-08-06 14:03:00 +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!