Sam Ford 4a4f7a541a
Cask: Initialize yet more instance variables
I previously added some instance variables in `Cask::DSL` to its
`initialize` method but I missed some last time, so we still see
warnings like `The class Cask::DSL reached 8 shape variations,
instance variables accesses will be slower and memory usage increased.
It is recommended to define instance variables in a consistent order,
for instance by eagerly defining them all in the #initialize method.`

This initializes more instance variables in `Cask` classes to resolve
other situations where this warning may occur. I've been testing this
for a while and haven't see any warnings with these changes but
there's always a chance that there's still more work to be done.
2025-06-13 08:32:56 -04:00
..
2025-06-09 19:06:16 +01:00
2025-06-11 15:39:36 +00:00
2025-06-09 21:41:49 +01:00
2025-04-23 10:09:45 +02:00
2025-03-31 17:55:07 +01:00
2025-05-14 17:13:58 -07:00
2025-02-04 16:27:39 +00:00
2025-06-09 19:06:16 +01:00
2025-06-09 19:06:16 +01:00
2025-02-17 18:56:31 -08:00
2025-04-23 10:09:45 +02:00
2025-04-15 23:02:00 +01:00
2025-02-16 13:26:10 -08:00
2025-05-05 14:35:08 -07:00
2025-06-09 19:06:16 +01:00
2025-06-09 19:06:16 +01:00
2025-04-22 11:50:08 -07:00
2025-02-17 18:56:31 -08:00
2025-06-09 19:06:16 +01:00
2025-06-09 19:06:16 +01:00
2025-04-16 16:22:36 +01:00
2025-06-09 19:06:16 +01:00
2025-06-09 19:06:16 +01:00
2025-02-04 16:27:39 +00:00
2025-03-02 21:36:03 -08:00
2025-06-09 19:06:16 +01:00
2025-06-09 19:06:16 +01:00
2025-06-09 19:06:16 +01:00
2025-03-31 17:55:07 +01:00
2025-03-27 03:38:09 +00:00
2025-06-09 19:06:16 +01:00
2025-06-09 19:06:16 +01:00
2025-05-21 17:54:21 +02:00
2025-02-24 11:57:20 -08:00
2025-05-13 01:33:14 +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!