replace is_overlap?
with overlap?
This commit is contained in:
parent
fab7fdcf2f
commit
bd406ca350
1 changed files with 2 additions and 2 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Reference in a new issue