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