Options can be dumped as JSON

This commit is contained in:
Jack Nagel committed 2013-01-26 11:37:01 -06:00
1 parent 56f72c4853
commit 7a2e4e8cf8
1 file changed
+4
+4
View File
@@ -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