Sha256: 060ccc32ad9a41eb064d22f6980092f44d174adcf2787da4059d564c46b88d40

Contents?: true

Size: 161 Bytes

Versions: 1

Compression:

Stored size: 161 Bytes

Contents

class ObjectPresent
  def initialize(object)
    @object = object
  end

  def present?
    if @object.present?
      yield
    else
      nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
temperature_conversion_raghu-0.1.1 lib/object_present.rb