Class: Contracts::Formatters::ClassInspectWrapper
- Inherits:
-
Object
- Object
- Contracts::Formatters::ClassInspectWrapper
show all
- Includes:
- InspectWrapper
- Defined in:
- lib/contracts/formatters.rb
Instance Method Summary
collapse
create, #delim, #initialize, #inspect, #to_s
Instance Method Details
#custom_to_s? ⇒ Boolean
122
123
124
|
# File 'lib/contracts/formatters.rb', line 122
def custom_to_s?
@value.to_s != @value.name
end
|
#useful_inspect ⇒ Object
126
127
128
|
# File 'lib/contracts/formatters.rb', line 126
def useful_inspect
strip_prefix(empty_to_s? ? @value.name : @value.inspect)
end
|