Class: RSpec::Support::ObjectFormatter::BigDecimalInspector Private
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
BaseInspector ,
Struct
|
|
Instance Chain:
self,
BaseInspector ,
Struct
|
|
Inherits: |
RSpec::Support::ObjectFormatter::BaseInspector
|
Defined in: | rspec-support/lib/rspec/support/object_formatter.rb |
Class Method Summary
Instance Attribute Summary
BaseInspector
- Inherited
Instance Method Summary
Class Method Details
.can_inspect?(object) ⇒ Boolean
# File 'rspec-support/lib/rspec/support/object_formatter.rb', line 178
def self.can_inspect?(object) defined?(BigDecimal) && BigDecimal === object end
Instance Method Details
#inspect
[ GitHub ]# File 'rspec-support/lib/rspec/support/object_formatter.rb', line 182
def inspect "#{object.to_s('F')} (#{object.inspect})" end