diff options
| author | Jack Nagel | 2013-01-23 00:26:22 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-01-26 11:37:01 -0600 |
| commit | 7a2e4e8cf806d75be27680e9fc6692cbc8bcc97b (patch) | |
| tree | 90b4578c6b234cca2bcf0792644e0bcf36313313 /Library/Homebrew | |
| parent | 56f72c485353e9de4f2898389dc77a2766e273e4 (diff) | |
| download | homebrew-7a2e4e8cf806d75be27680e9fc6692cbc8bcc97b.tar.bz2 | |
Options can be dumped as JSON
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/formula_support.rb | 4 |
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 |
