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