Class: Module

Inherits:
Object show all
Defined in:
lib/expectations/blank_slate.rb,
lib/expectations/module.rb

Overview

Also, modules included into Object need to be scanned and have their instance methods removed from blank slate. In theory, modules included into Kernel would have to be removed as well, but a “feature” of Ruby prevents late includes into modules from being exposed in the first place.

Instance Method Summary collapse

Instance Method Details

#expectations_equal_to(other) ⇒ Object



3
4
5
# File 'lib/expectations/module.rb', line 3

def expectations_equal_to(other)
  self === other || self == other
end