Options can be dumped as JSON
This commit is contained in:
parent
a5471a0cb0
commit
4062559acb
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user