Sha256: ea405595cf8799d307d02d18d32a2f88fde0604f509b482c29f10ccf4f63079d

Contents?: true

Size: 172 Bytes

Versions: 6

Compression:

Stored size: 172 Bytes

Contents

# encoding: utf-8
class NilClass
  # do not raise error when calling messages on nil object.
  def method_missing(method_sym, *arguments, &block)
    return nil
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails_best_practices-0.7.1 lib/rails_best_practices/core_ext/nil_class.rb
rails_best_practices-0.7.0 lib/rails_best_practices/core_ext/nil_class.rb
rails_best_practices-0.6.7 lib/rails_best_practices/core_ext/nil_class.rb
rails_best_practices-0.6.6 lib/rails_best_practices/core_ext/nil_class.rb
rails_best_practices-0.6.5 lib/rails_best_practices/core_ext/nil_class.rb
rails_best_practices-0.6.1 lib/rails_best_practices/core_ext/nil_class.rb