Method: String#lastIndexOf

Defined in:
lib/src-generic/extended/String.rb

#lastIndexOf(string) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/src-generic/extended/String.rb', line 20

def lastIndexOf(string)
	if (self.rindex(string).nil?)
		return 0
	else
		return self.rindex(string)
	end
end