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
|
||||
end
|
||||
|
||||
macro issue_for(*args, &block)
|
||||
source.add_issue self, {{*args}} {{block}}
|
||||
macro issue_for(*args, **kwargs, &block)
|
||||
source.add_issue(self, {{*args}}, {{**kwargs}}) {{block}}
|
||||
end
|
||||
|
||||
protected def self.rule_name
|
||||
|
|
Loading…
Reference in a new issue