mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Rename Arguments.empty to Arguments.none
This commit is contained in:
parent
4b2b37477e
commit
4aaa8db5e2
5 changed files with 5 additions and 5 deletions
|
@ -435,7 +435,7 @@ module Spectator::DSL
|
|||
|
||||
# Returns empty arguments.
|
||||
def no_args
|
||||
::Spectator::Arguments.empty
|
||||
::Spectator::Arguments.none
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -23,7 +23,7 @@ module Spectator
|
|||
end
|
||||
|
||||
# Instance of empty arguments.
|
||||
class_getter empty : AbstractArguments = capture
|
||||
class_getter none : AbstractArguments = capture
|
||||
|
||||
# Returns the positional argument at the specified index.
|
||||
def [](index : Int)
|
||||
|
|
|
@ -11,7 +11,7 @@ module Spectator
|
|||
getter arguments : AbstractArguments
|
||||
|
||||
# Creates a method call.
|
||||
def initialize(@method : Symbol, @arguments : AbstractArguments = Arguments.empty)
|
||||
def initialize(@method : Symbol, @arguments : AbstractArguments = Arguments.none)
|
||||
end
|
||||
|
||||
# Creates a method call by splatting its arguments.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue