module Spectator::Mocks::Mock
  
  Defined in:
spectator/mocks/mock.crMacro Summary
- 
        def_define_mock(name)
        
          
Defines a macro to define a mock.
 - define(type, **stubs, &block)
 
Macro Detail
        
        macro def_define_mock(name)
        #
      
      
        Defines a macro to define a mock. This is a workaround for the DSL methods regarding visibility modifiers. A type defined by a nested macro loses its visibility modifier from the outer macro invocation. This is probably a bug in the compiler, but working around for now. The workaround is to reuse the macro definition code here and in the DSL.