Sha256: bd3ba76fe37ec72b80335a30bc4ba1dfb3bb920c503aba36bfe0fad7fc215933

Contents?: true

Size: 250 Bytes

Versions: 12

Compression:

Stored size: 250 Bytes

Contents

# frozen_string_literal: true

class String
  # Returns a copy of string with all spaces removed.
  #
  # @return [String] with all spaces trimmed which includes all leading, trailing and embedded spaces.
  def trim_all
    gsub(/\s+/, '')
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
simple_command_dispatcher-3.0.4 lib/core_extensions/string.rb
simple_command_dispatcher-3.0.3 lib/core_extensions/string.rb
simple_command_dispatcher-3.0.2 lib/core_extensions/string.rb
simple_command_dispatcher-3.0.1 lib/core_extensions/string.rb
simple_command_dispatcher-3.0.0 lib/core_extensions/string.rb
simple_command_dispatcher-2.0.1 lib/core_extensions/string.rb
simple_command_dispatcher-2.0.0 lib/core_extensions/string.rb
simple_command_dispatcher-1.2.8 lib/core_extensions/string.rb
simple_command_dispatcher-1.2.7 lib/core_extensions/string.rb
simple_command_dispatcher-1.2.6 lib/core_extensions/string.rb
simple_command_dispatcher-1.2.5 lib/core_extensions/string.rb
simple_command_dispatcher-1.2.4 lib/core_extensions/string.rb