Sha256: 8309fd4550e4a54859ba14147cbeefc6545272cefa63559f6e1f4eb91f4babe5

Contents?: true

Size: 165 Bytes

Versions: 1

Compression:

Stored size: 165 Bytes

Contents

# frozen_string_literal: true

module Helpers
  def strip_str_and_validate(str)
    return str if str.nil?

    str = str.strip
    str.empty? ? nil : str
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cpl-1.2.0 lib/core/helpers.rb