lib/extensible/extension_kernel.rb in extensible-0.0.2 vs lib/extensible/extension_kernel.rb in extensible-0.0.3
- old
+ new
@@ -1,11 +1,11 @@
-require "extensible/extension_kernel_template"
+require "extensible/extension_kernel_template".freeze
-module Extensible # rubocop:disable Style/Documentation
+module Extensible
##
# A custom ExtensionKernelTemplate clone that is extended by Extensible to make it, well, extensible.
ExtensionKernel = ExtensionKernelTemplate.clone.module_eval do
- private # rubocop:disable Style/EmptyLinesAroundAccessModifier
+ private
def extended(submodule)
super
unless submodule.const_defined?(:ExtensionKernel, false)