Sha256: c11056235aff5295239ef53903e9f37883cd5c719a36ae3c43715dd63ca5daf1

Contents?: true

Size: 90 Bytes

Versions: 13

Compression:

Stored size: 90 Bytes

Contents

Kernel.class_eval do
  def swallow_nil
    yield
  rescue NoMethodError
    nil
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
puffer_pages-0.0.13 lib/puffer_pages/extensions/core.rb
puffer_pages-0.0.12 lib/puffer_pages/extensions/core.rb
puffer_pages-0.0.11 lib/puffer_pages/extensions/core.rb
puffer_pages-0.0.10 lib/puffer_pages/extensions/core.rb
puffer_pages-0.0.9 lib/puffer_pages/extensions/core.rb
puffer_pages-0.0.8 lib/puffer_pages/extensions/core.rb
puffer_pages-0.0.7 lib/puffer_pages/extensions/core.rb
puffer_pages-0.0.6 lib/puffer_pages/extensions/core.rb
puffer_pages-0.0.5 lib/puffer_pages/extensions/core.rb
puffer_pages-0.0.4 lib/puffer_pages/extensions/core.rb
puffer_pages-0.0.3 lib/puffer_pages/extensions/core.rb
puffer_pages-0.0.2 lib/puffer_pages/extensions/core.rb
puffer_pages-0.0.1 lib/puffer_pages/extensions/core.rb