Sha256: 5a31023ed6dd95f369dbc31320b79a2b8abbe500bf6bcfb8294e0767526f2151

Contents?: true

Size: 140 Bytes

Versions: 1

Compression:

Stored size: 140 Bytes

Contents

require "exec_if/version"

class Object
  def exec_if(obj, &blk)
    if obj
      blk.call(self, obj)
    else
      self
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exec_if-0.1.0 lib/exec_if.rb