From 8fc4bba03a1b3d0446ed52c0c294c59b28be0cf9 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 10 Aug 2014 21:45:23 -0500 Subject: [PATCH] Remove user-defined options method after evaluation Now we can use the superclass options method for our own purposes. --- Library/Homebrew/formula.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 78d3a568ed..13624537c8 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -596,6 +596,8 @@ class Formula spec.options << Option.new(opt[/^--(.+)$/, 1], desc) end end + + remove_method(:options) end end