Fix warning under Ruby 2.2
This commit is contained in:
parent
e3f082c294
commit
14aa1de33c
@ -16,6 +16,7 @@ class Option
|
|||||||
alias_method :to_str, :to_s
|
alias_method :to_str, :to_s
|
||||||
|
|
||||||
def <=>(other)
|
def <=>(other)
|
||||||
|
return unless Option === other
|
||||||
name <=> other.name
|
name <=> other.name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user