class Dry::Monads::SuperDiff::Tuple::Dict::OTFlatteners::MonasAsCollectionConstructor::RegularConstructor::TupleConstructor::OT::RegularConstructor::TupleConstructor::Tuple::Dict::OTBuilders::CompareDefault::Differs::CompareDefault::CompareTuples::ITBuilders::TupleConstructor::DictConstructor::Dict
Public Class Methods
Source
# File lib/dry/monads/extensions/super_diff.rb, line 322 def self.applies_to?(object) = object.is_a?(::Dry::Monads::SuperDiff::Dict) def call ::SuperDiff::Core::InspectionTree.new do |t1| t1.only_when empty do |t2| t2.as_lines_when_rendering_to_lines do |t3| t3.add_text "{}" end end t1.only_when nonempty do |t2| t2.nested do |t3| t3.insert_hash_inspection_of(object) end end end end end
Public Instance Methods
Source
# File lib/dry/monads/extensions/super_diff.rb, line 324 def call ::SuperDiff::Core::InspectionTree.new do |t1| t1.only_when empty do |t2| t2.as_lines_when_rendering_to_lines do |t3| t3.add_text "{}" end end t1.only_when nonempty do |t2| t2.nested do |t3| t3.insert_hash_inspection_of(object) end end end end