Class: RSpec::Matchers::Composable::DescribableItem Private
- Inherits:
-
Struct
- Object
- Struct
- RSpec::Matchers::Composable::DescribableItem
- Defined in:
- lib/rspec/matchers/composable.rb
Overview
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.
Wraps an item in order to surface its description
via inspect
.
Instance Method Summary collapse
- #inspect ⇒ Object private
- #pretty_print(pp) ⇒ Object private
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.
171 172 173 |
# File 'lib/rspec/matchers/composable.rb', line 171 def inspect "(#{item.description})" 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.
175 176 177 |
# File 'lib/rspec/matchers/composable.rb', line 175 def pretty_print(pp) pp.text "(#{item.description})" end |