Sam Ford 6f511ee4e2
Cask::DSL: initialize more instance variables
I recently updated `Cask::DSL` to define instance variables in
`#initialize` to get us closer to resolving a "shape variation"
warning from Ruby. The reason why we continued to receive this warning
after the previous changes is because I overlooked the variables that
are set using `set_unique_stanza`.

The tricky part about those instance variables is that we need to be
able to identify if they've been set. I've handled this by using a
`nil` initial value and updating the `instance_variable_defined?`
condition to check for a non-`nil` value instead. This works for these
variables but it would be a problem if we ever have a DSL method that
accepts a `nil` argument.
2025-04-22 23:21:05 -04:00
..
2025-02-06 21:04:08 -08:00
2025-04-02 17:15:36 +01:00
2025-04-22 11:50:08 -07:00
2025-03-27 03:38:09 +00:00
2025-04-22 13:00:19 -07:00
2025-04-22 11:50:08 -07:00
2025-03-31 17:55:07 +01:00
2025-04-22 11:50:08 -07:00
2025-04-22 19:24:35 +00:00
2025-04-22 11:50:08 -07:00
2025-04-16 09:26:13 -07:00
2025-04-14 19:10:58 +01:00
2025-02-17 18:56:31 -08:00
2025-02-17 18:56:31 -08:00
2025-04-15 23:02:00 +01:00
2025-02-16 13:26:10 -08:00
2025-04-03 12:47:21 +01:00
2025-03-30 18:15:00 +02:00
2025-02-06 21:04:08 -08:00
2025-04-22 11:50:08 -07:00
2025-04-22 19:24:35 +00:00
2025-02-17 18:56:31 -08:00
2025-04-16 16:22:36 +01:00
2025-03-02 21:36:03 -08:00
2025-03-31 17:55:07 +01:00
2025-03-27 03:38:09 +00:00
2025-03-02 21:36:03 -08:00
2025-02-24 11:57:20 -08:00
2025-02-17 19:11:48 -08: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!