lib/scss_lint/location.rb in scss_lint-0.55.0 vs lib/scss_lint/location.rb in scss_lint-0.56.0
- old
+ new
@@ -17,18 +17,18 @@
@column = column
@length = length
end
def ==(other)
- [:line, :column, :length].all? do |attr|
+ %i[line column length].all? do |attr|
send(attr) == other.send(attr)
end
end
alias eql? ==
def <=>(other)
- [:line, :column, :length].each do |attr|
+ %i[line column length].each do |attr|
result = send(attr) <=> other.send(attr)
return result unless result == 0
end
0