Options can be dumped as JSON

This commit is contained in:
Jack Nagel 2013-01-23 00:26:22 -06:00
parent a5471a0cb0
commit 4062559acb

View File

@ -177,6 +177,10 @@ class Option
end end
alias_method :to_str, :to_s alias_method :to_str, :to_s
def to_json
flag.inspect
end
def eql?(other) def eql?(other)
@name == other.name @name == other.name
end end