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)
|
||||
end
|
||||
|
||||
# Constructs an instance of empty arguments.
|
||||
macro empty
|
||||
{{@type.name(generic_args: false)}}.capture
|
||||
end
|
||||
# Instance of empty arguments.
|
||||
class_getter empty : Arguments(Tuple(), NamedTuple()) = capture
|
||||
|
||||
# Returns the positional argument at the specified index.
|
||||
def [](index : Int)
|
||||
|
|
Loading…
Reference in a new issue