replace is_overlap? with overlap?

This commit is contained in:
Maxim Rydkin 2017-08-24 19:42:40 +03:00
parent fab7fdcf2f
commit bd406ca350

View file

@ -152,14 +152,14 @@ module Network
end
def find_free_parent_space(range, space_base, space_step, space_default)
if is_overlap?(range, space_default)
if overlap?(range, space_default)
find_free_space(range, space_step, space_base, space_default)
else
space_default
end
end
def is_overlap?(range, overlap_space)
def overlap?(range, overlap_space)
range.each do |i|
if i != range.first &&
i != range.last &&