Sha256: 13d2508056921df1b95214538f41ea57ff8d1f53b83983c681569d6d0ab24630

Contents?: true

Size: 152 Bytes

Versions: 2

Compression:

Stored size: 152 Bytes

Contents

class Utils
  def self.null_or_empty?(string)
    return true if !string.nil? && !string.empty?

    return true unless string.nil?

    false
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
securenative-0.1.17 lib/securenative/utils/utils.rb
securenative-0.1.16 lib/securenative/utils/utils.rb