mirror of
				https://gitea.invidious.io/iv-org/shard-spectator.git
				synced 2024-08-15 00:53:35 +00:00 
			
		
		
		
	Ensure Stubbable can have stubs defined
Require implementation of _spectator_define_stub.
This commit is contained in:
		
							parent
							
								
									477e412ac6
								
							
						
					
					
						commit
						e8bac86017
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -22,6 +22,9 @@ module Spectator
 | 
				
			||||||
    # or nil if no stubs satisfy it.
 | 
					    # or nil if no stubs satisfy it.
 | 
				
			||||||
    abstract def _spectator_find_stub(call : MethodCall) : Stub?
 | 
					    abstract def _spectator_find_stub(call : MethodCall) : Stub?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Defines a stub to change the behavior of a method.
 | 
				
			||||||
 | 
					    abstract def _spectator_define_stub(stub : Stub) : Nil
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Method called when a stub isn't found.
 | 
					    # Method called when a stub isn't found.
 | 
				
			||||||
    #
 | 
					    #
 | 
				
			||||||
    # The received message is captured in *call*.
 | 
					    # The received message is captured in *call*.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue