Class: RSpec::Support::ObjectFormatter::BigDecimalInspector Private
- Inherits:
-
BaseInspector
- Object
- Struct
- BaseInspector
- RSpec::Support::ObjectFormatter::BigDecimalInspector
- 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.
Instance Attribute Summary
Attributes inherited from BaseInspector
Class Method Summary collapse
- .can_inspect?(object) ⇒ Boolean private
Instance Method Summary collapse
- #inspect ⇒ Object private
Methods inherited from BaseInspector
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.
178 179 180 |
# File 'lib/rspec/support/object_formatter.rb', line 178 def self.can_inspect?(object) defined?(BigDecimal) && BigDecimal === object 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.
182 183 184 |
# File 'lib/rspec/support/object_formatter.rb', line 182 def inspect "#{object.to_s('F')} (#{object.inspect})" end |