From 4062559acb96f9b8c7e33ef99deb548ce73d6d6e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 23 Jan 2013 00:26:22 -0600 Subject: Options can be dumped as JSON --- Library/Homebrew/formula_support.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3