module ExecutableMock::Registry
Public Class Methods
included(klass)
click to toggle source
# File lib/executable_mock/registry.rb, line 5 def self.included(klass) klass.extend(ClassMethods) end
Public Instance Methods
deregister_self()
click to toggle source
# File lib/executable_mock/registry.rb, line 19 def deregister_self self.class.registry.delete(self) end
register_self()
click to toggle source
# File lib/executable_mock/registry.rb, line 15 def register_self self.class.registry << self end