Prevent overly verbose output of internals

This commit is contained in:
Michael Miller 2021-01-30 20:20:30 -07:00
parent 2c33e96dd4
commit 62d478f7c2
No known key found for this signature in database
GPG Key ID: FB9F12F7C646A4AD
1 changed files with 9 additions and 0 deletions

View File

@ -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