Class: RSpec::Support::ObjectFormatter::DelegatorInspector Private
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
BaseInspector ,
Struct
|
|
Instance Chain:
self,
BaseInspector ,
Struct
|
|
Inherits: |
RSpec::Support::ObjectFormatter::BaseInspector
|
Defined in: | rspec-support/lib/rspec/support/object_formatter.rb |
Class Method Summary
Instance Attribute Summary
BaseInspector
- Inherited
Instance Method Summary
Class Method Details
.can_inspect?(object) ⇒ Boolean
# File 'rspec-support/lib/rspec/support/object_formatter.rb', line 225
def self.can_inspect?(object) defined?(Delegator) && Delegator === object end
Instance Method Details
#inspect
[ GitHub ]# File 'rspec-support/lib/rspec/support/object_formatter.rb', line 229
def inspect "#<#{object.class}(#{formatter.format(object.send(:__getobj__))})>" end