mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Change empty args to reusable readonly instance
This commit is contained in:
parent
29389f1dbf
commit
9eb2946be6
1 changed files with 2 additions and 4 deletions
|
@ -22,10 +22,8 @@ module Spectator
|
||||||
new(args, kwargs)
|
new(args, kwargs)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Constructs an instance of empty arguments.
|
# Instance of empty arguments.
|
||||||
macro empty
|
class_getter empty : Arguments(Tuple(), NamedTuple()) = capture
|
||||||
{{@type.name(generic_args: false)}}.capture
|
|
||||||
end
|
|
||||||
|
|
||||||
# Returns the positional argument at the specified index.
|
# Returns the positional argument at the specified index.
|
||||||
def [](index : Int)
|
def [](index : Int)
|
||||||
|
|
Loading…
Reference in a new issue