aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_support.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb
index caf82f765..d4e6a1476 100644
--- a/Library/Homebrew/formula_support.rb
+++ b/Library/Homebrew/formula_support.rb
@@ -177,6 +177,10 @@ class Option
end
alias_method :to_str, :to_s
+ def to_json
+ flag.inspect
+ end
+
def eql?(other)
@name == other.name
end