Sha256: 0884c940387995959feff943dcec9b6ce7cf4354ae3e4797f8e1c6ec38b203a6

Contents?: true

Size: 172 Bytes

Versions: 25

Compression:

Stored size: 172 Bytes

Contents

module IronWorker

  module Utils

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

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
iron_worker-2.4.3 lib/iron_worker/utils.rb
iron_worker-2.4.2 lib/iron_worker/utils.rb
iron_worker-2.4.1 lib/iron_worker/utils.rb
iron_worker-2.4.0 lib/iron_worker/utils.rb
iron_worker-2.3.17 lib/iron_worker/utils.rb
iron_worker-2.3.16 lib/iron_worker/utils.rb
iron_worker-2.3.15 lib/iron_worker/utils.rb
iron_worker-2.3.14 lib/iron_worker/utils.rb
iron_worker-2.3.13 lib/iron_worker/utils.rb
iron_worker-2.3.12 lib/iron_worker/utils.rb
iron_worker-2.3.11 lib/iron_worker/utils.rb
iron_worker-2.3.10 lib/iron_worker/utils.rb
iron_worker-2.3.9 lib/iron_worker/utils.rb
iron_worker-2.3.8 lib/iron_worker/utils.rb
iron_worker-2.3.7 lib/iron_worker/utils.rb
iron_worker-2.3.6 lib/iron_worker/utils.rb
iron_worker-2.3.5 lib/iron_worker/utils.rb
iron_worker-2.3.4 lib/iron_worker/utils.rb
iron_worker-2.3.3 lib/iron_worker/utils.rb
iron_worker-2.3.2 lib/iron_worker/utils.rb