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