Class: RSpec::Support::ObjectFormatter::BaseInspector Private
- Inherits:
-
Struct
- Object
- Struct
- RSpec::Support::ObjectFormatter::BaseInspector
- Defined in:
- lib/rspec/support/object_formatter.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
BigDecimalInspector, DateTimeInspector, DelegatorInspector, DescribableMatcherInspector, InspectableObjectInspector, TimeInspector, UninspectableObjectInspector
Instance Attribute Summary collapse
-
#formatter ⇒ Object
Returns the value of attribute formatter.
-
#object ⇒ Object
Returns the value of attribute object.
Class Method Summary collapse
- .can_inspect?(_object) ⇒ Boolean private
Instance Method Summary collapse
- #inspect ⇒ Object private
- #pretty_print(pp) ⇒ Object private
Instance Attribute Details
#formatter ⇒ Object
Returns the value of attribute formatter
127 128 129 |
# File 'lib/rspec/support/object_formatter.rb', line 127 def formatter @formatter end |
#object ⇒ Object
Returns the value of attribute object
127 128 129 |
# File 'lib/rspec/support/object_formatter.rb', line 127 def object @object end |
Class Method Details
.can_inspect?(_object) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
128 129 130 |
# File 'lib/rspec/support/object_formatter.rb', line 128 def self.can_inspect?(_object) raise NotImplementedError end |
Instance Method Details
#inspect ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
132 133 134 |
# File 'lib/rspec/support/object_formatter.rb', line 132 def inspect raise NotImplementedError end |
#pretty_print(pp) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
136 137 138 |
# File 'lib/rspec/support/object_formatter.rb', line 136 def pretty_print(pp) pp.text(inspect) end |