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