mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Allowed named arguments with Rule::Base.issue_for
				
					
				
			This commit is contained in:
		
							parent
							
								
									3b11491cea
								
							
						
					
					
						commit
						16608965f5
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -112,8 +112,8 @@ module Ameba::Rule
 | 
				
			||||||
      name.hash
 | 
					      name.hash
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    macro issue_for(*args, &block)
 | 
					    macro issue_for(*args, **kwargs, &block)
 | 
				
			||||||
      source.add_issue self, {{*args}} {{block}}
 | 
					      source.add_issue(self, {{*args}}, {{**kwargs}}) {{block}}
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    protected def self.rule_name
 | 
					    protected def self.rule_name
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue