lib/yard/verifier.rb in yard-0.8.7.3 vs lib/yard/verifier.rb in yard-0.8.7.4

- old
+ new

@@ -116,9 +116,10 @@ # Returns the state of NilClass back to normal # @return [void] def unmodify_nilclass NILCLASS_METHODS.each do |meth| + next unless nil.respond_to?(meth) NilClass.send(:remove_method, meth) end end # Creates the +__execute+ method by evaluating the expressions