module T::Props::PrettyPrintable

typed: true

Public Instance Methods

inspect() click to toggle source

Return a string representation of this object and all of its props

# File lib/types/props/pretty_printable.rb, line 8
def inspect
  T.unsafe(T.cast(self, Object).class).decorator.inspect_instance(self)
end
pretty_inspect() click to toggle source

Override the PP gem with something that's similar, but gives us a hook to do redaction

# File lib/types/props/pretty_printable.rb, line 14
def pretty_inspect
  T.unsafe(T.cast(self, Object).class).decorator.inspect_instance(self, multiline: true)
end