Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/ruby_fixes.rb

Instance Method Summary collapse

Instance Method Details

#start_with?(str) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/logstash/ruby_fixes.rb', line 6

def start_with?(str)
  return self[0 .. (str.length-1)] == str
end