lib/nanoc/base/contracts_support.rb in nanoc-4.2.4 vs lib/nanoc/base/contracts_support.rb in nanoc-4.3.0
- old
+ new
@@ -4,11 +4,17 @@
# @api private
module ContractsSupport
class Ignorer
include Singleton
+ # rubocop:disable Style/MethodMissing
def method_missing(*_args)
self
+ end
+ # rubocop:enable Style/MethodMissing
+
+ def respond_to_missing?(*_args)
+ true
end
end
module DisabledContracts
Any = Ignorer.instance