Sha256: a97c0d8664f9369f25468f747806db731a13dc4a0aaa886e7b1986e4cc7941f4

Contents?: true

Size: 119 Bytes

Versions: 2

Compression:

Stored size: 119 Bytes

Contents

require_relative "exists/version"

require 'null_question'

class Object
  def exists
    null? ? nil : self
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
exists-1.0.1 lib/exists.rb
exists-1.0.0 lib/exists.rb