removed temp
This commit is contained in:
parent
055a4d622b
commit
4f8a5f2a78
@ -193,16 +193,14 @@ module Parfait
|
|||||||
def start_with(other)
|
def start_with(other)
|
||||||
return false if other.length > self.length
|
return false if other.length > self.length
|
||||||
s = other.length
|
s = other.length
|
||||||
temp = Word.new(other.length)
|
|
||||||
i=0
|
i=0
|
||||||
while i<=s-1
|
while i<=s-1
|
||||||
temp.set_char(i,self.get_char(i))
|
if other.get_char(i) != self.get_char(i)
|
||||||
if temp.compare(other)
|
return false
|
||||||
return true
|
|
||||||
end
|
end
|
||||||
i=i+1
|
i=i+1
|
||||||
end
|
end
|
||||||
return false
|
return true
|
||||||
end
|
end
|
||||||
private
|
private
|
||||||
def check_length
|
def check_length
|
||||||
|
Loading…
Reference in New Issue
Block a user