mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Formatting
This commit is contained in:
parent
0ae5cdc9ae
commit
4c9bbbe07b
1 changed files with 5 additions and 5 deletions
|
@ -2,17 +2,17 @@ module Spectator::Mocks
|
|||
module TypeRegistry
|
||||
extend self
|
||||
|
||||
alias Key = Tuple(String, Symbol)
|
||||
alias Key = Tuple(String, Symbol)
|
||||
|
||||
@@entries = {} of Key => Deque(MethodStub)
|
||||
|
||||
def add(type_name : String, method_name : Symbol, source : Source, args : Arguments) : Nil
|
||||
key = {type_name, method_name}
|
||||
list = if @@entries.has_key?(key)
|
||||
@@entries[key]
|
||||
else
|
||||
@@entries[key] = Deque(MethodStub).new
|
||||
end
|
||||
@@entries[key]
|
||||
else
|
||||
@@entries[key] = Deque(MethodStub).new
|
||||
end
|
||||
list << NilMethodStub.new(method_name, source, args)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue