Allowed named arguments with Rule::Base.issue_for

This commit is contained in:
fn ⌃ ⌥ 2021-10-26 12:02:17 -07:00
parent 3b11491cea
commit 16608965f5

View file

@ -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