class RSpec::Support::ObjectFormatter::DelegatorInspector
Public Class Methods
can_inspect?(object)
click to toggle source
# File lib/rspec/support/object_formatter.rb, line 223 def self.can_inspect?(object) defined?(Delegator) && Delegator === object end
Public Instance Methods
inspect()
click to toggle source
# File lib/rspec/support/object_formatter.rb, line 227 def inspect "#<#{object.class}(#{formatter.format(object.send(:__getobj__))})>" end