Sha256: f79da33fd77a3538b2a1082eec4bddc34374ea340f21d5d1e7ce4b8a1de46ae5

Contents?: true

Size: 77 Bytes

Versions: 4

Compression:

Stored size: 77 Bytes

Contents

class String
  def presence
    return nil if self.empty?
    self
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jeanine-0.4.0 lib/jeanine/core_ext/string.rb
jeanine-0.3.0 lib/jeanine/core_ext/string.rb
jeanine-0.2.0 lib/jeanine/core_ext/string.rb
jeanine-0.1.0 lib/jeanine/core_ext/string.rb