mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Make skip
a named argument
This commit is contained in:
parent
c09b36799a
commit
1931a5f4ef
1 changed files with 2 additions and 2 deletions
|
@ -54,12 +54,12 @@ module Ameba::AST
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(@rule, @source, skip : Category)
|
def initialize(@rule, @source, *, skip : Category)
|
||||||
initialize @rule, @source,
|
initialize @rule, @source,
|
||||||
skip: NodeVisitor.category_to_node_classes(skip)
|
skip: NodeVisitor.category_to_node_classes(skip)
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(@rule, @source, skip : Array? = nil)
|
def initialize(@rule, @source, *, skip : Array? = nil)
|
||||||
@skip = skip.try &.map(&.as(Crystal::ASTNode.class))
|
@skip = skip.try &.map(&.as(Crystal::ASTNode.class))
|
||||||
super @rule, @source
|
super @rule, @source
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue