class Contracts::Formatters::ObjectInspectWrapper
Public Instance Methods
Source
# File lib/contracts/formatters.rb, line 134 def custom_to_s? !@value.to_s.match(/#<\w+:.+>/) end
Source
# File lib/contracts/formatters.rb, line 138 def useful_inspect strip_prefix(empty_to_s? ? @value.class.name : @value.inspect) end