123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Support::ObjectFormatter::BaseInspector Private

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
Defined in: rspec-support/lib/rspec/support/object_formatter.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Class Method Details

.can_inspect?(_object) ⇒ Boolean

Raises:

  • (NotImplementedError)
[ GitHub ]

  
# File 'rspec-support/lib/rspec/support/object_formatter.rb', line 128

def self.can_inspect?(_object)
  raise NotImplementedError
end

Instance Attribute Details

#formatter (rw)

[ GitHub ]

  
# File 'rspec-support/lib/rspec/support/object_formatter.rb', line 127

BaseInspector = Struct.new(:object, :formatter)

#object (rw)

[ GitHub ]

  
# File 'rspec-support/lib/rspec/support/object_formatter.rb', line 127

BaseInspector = Struct.new(:object, :formatter)

Instance Method Details

#inspect

Raises:

  • (NotImplementedError)
[ GitHub ]

  
# File 'rspec-support/lib/rspec/support/object_formatter.rb', line 132

def inspect
  raise NotImplementedError
end

#pretty_print(pp)

[ GitHub ]

  
# File 'rspec-support/lib/rspec/support/object_formatter.rb', line 136

def pretty_print(pp)
  pp.text(inspect)
end