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.
169 170 171 |
# File 'lib/rspec/matchers/composable.rb', line 169 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.
173 174 175 |
# File 'lib/rspec/matchers/composable.rb', line 173 def pretty_print(pp) pp.text "(#{item.description})" end |