mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Better stringified call
This commit is contained in:
parent
91696d490f
commit
1a30a56f2a
2 changed files with 12 additions and 0 deletions
|
@ -8,5 +8,12 @@ module Spectator::Mocks
|
|||
def initialize(name : Symbol, @args : GenericArguments(T, NT))
|
||||
super(name)
|
||||
end
|
||||
|
||||
def to_s(io)
|
||||
super
|
||||
io << '('
|
||||
io << @args
|
||||
io << ')'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,5 +4,10 @@ module Spectator::Mocks
|
|||
|
||||
def initialize(@name : Symbol)
|
||||
end
|
||||
|
||||
def to_s(io)
|
||||
io << '#'
|
||||
io << @name
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue