Module: T::Props::PrettyPrintable::DecoratorMethods

Extended by:
Sig
Defined in:
lib/types/props/pretty_printable.rb

Instance Method Summary collapse

Methods included from Sig

sig

Instance Method Details

#inspect_class_with_decoration(instance) ⇒ Object



60
61
62
# File 'lib/types/props/pretty_printable.rb', line 60

def inspect_class_with_decoration(instance)
  T.unsafe(instance).class.to_s
end

#pretty_print_extra(instance, pp) ⇒ Object



67
# File 'lib/types/props/pretty_printable.rb', line 67

def pretty_print_extra(instance, pp); end

#valid_rule_key?(key) ⇒ Boolean

Returns:



53
54
55
# File 'lib/types/props/pretty_printable.rb', line 53

def valid_rule_key?(key)
  super || key == :inspect
end