mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Prevent overly verbose output of internals
This commit is contained in:
parent
2c33e96dd4
commit
62d478f7c2
1 changed files with 9 additions and 0 deletions
|
@ -4,6 +4,15 @@
|
|||
# This type is intentionally outside the `Spectator` module.
|
||||
# The reason for this is to prevent name collision when using the DSL to define a spec.
|
||||
abstract class SpectatorContext
|
||||
def to_s(io)
|
||||
io << "Context"
|
||||
end
|
||||
|
||||
def inspect(io)
|
||||
io << "Context<"
|
||||
io << self.class
|
||||
io << '>'
|
||||
end
|
||||
end
|
||||
|
||||
module Spectator
|
||||
|
|
Loading…
Reference in a new issue