Module: SimpleWorker::Utils

Defined in:
lib/simple_worker/utils.rb

Class Method Summary collapse

Class Method Details

.ends_with?(s, suffix) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
8
# File 'lib/simple_worker/utils.rb', line 5

def self.ends_with?(s, suffix)
  suffix = suffix.to_s
  s[-suffix.length, suffix.length] == suffix
end