mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 05:29:47 -05:00
Options can be dumped as JSON
This commit is contained in:
1 parent
56f72c4853
commit
7a2e4e8cf8
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user