lib/kind/core/kind.rb in kind-4.0.0 vs lib/kind/core/kind.rb in kind-4.1.0

- old
+ new

@@ -25,10 +25,10 @@ def self.of_class?(value) # :nodoc: value.kind_of?(::Class) end def self.of_module?(value) # :nodoc: - ::Module == value || (value.is_a?(::Module) && !of_class?(value)) + ::Module == value || (value.kind_of?(::Module) && !of_class?(value)) end def self.of_module_or_class!(value) # :nodoc: of!(::Module, value, 'Module/Class') end