Sha256: db0b23bb8216d506c1c33c1e8502ee8d176652456b2644917ab2884d8150f395

Contents?: true

Size: 104 Bytes

Versions: 17

Compression:

Stored size: 104 Bytes

Contents

module MuffleHelpers
  def muffle(*exceptions)
    yield
  rescue *exceptions.flatten
    nil
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
granite-form-0.6.1 spec/support/muffle_helper.rb
granite-form-0.6.0 spec/support/muffle_helper.rb
granite-form-0.5.0 spec/support/muffle_helper.rb
granite-form-0.4.0 spec/support/muffle_helper.rb
granite-form-0.3.0 spec/support/muffle_helper.rb
granite-form-0.2.0 spec/support/muffle_helper.rb
granite-form-0.1.1 spec/support/muffle_helper.rb
granite-form-0.1.0 spec/support/muffle_helper.rb
active_data-1.2.0 spec/support/muffle_helper.rb
active_data-1.1.7 spec/support/muffle_helper.rb
active_data-1.1.6 spec/support/muffle_helper.rb
active_data-1.1.5 spec/support/muffle_helper.rb
active_data-1.1.4 spec/support/muffle_helper.rb
active_data-1.1.3 spec/support/muffle_helper.rb
active_data-1.1.2 spec/support/muffle_helper.rb
active_data-1.1.1 spec/support/muffle_helper.rb
active_data-1.1.0 spec/support/muffle_helper.rb