123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Support::ObjectFormatter::InspectableItem Private

Relationships & Source Files
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

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#text (rw)

[ GitHub ]

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

InspectableItem = Struct.new(:text)

Instance Method Details

#inspect

[ GitHub ]

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

def inspect
  text
end

#pretty_print(pp)

[ GitHub ]

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

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