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

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec/support/object_formatter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inspectionObject

Returns the value of attribute inspection

Returns:

  • (Object)

    the current value of inspection



82
83
84
# File 'lib/rspec/support/object_formatter.rb', line 82

def inspection
  @inspection
end

Instance Method Details

#inspectObject



83
84
85
# File 'lib/rspec/support/object_formatter.rb', line 83

def inspect
  inspection
end

#pretty_print(pp) ⇒ Object



87
88
89
# File 'lib/rspec/support/object_formatter.rb', line 87

def pretty_print(pp)
  pp.text inspection
end