Class: Dry::Monads::SuperDiff::ITBuilders::TupleConstructor Private

Inherits:
RegularConstructor
  • Object
show all
Defined in:
lib/dry/monads/extensions/super_diff.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.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.applies_to?(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.

Returns:

  • (Boolean)


290
# File 'lib/dry/monads/extensions/super_diff.rb', line 290

def self.applies_to?(object) = super && IS_ARRAY.call(object)

Instance Method Details

#callObject

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.



292
293
294
295
296
297
298
299
300
# File 'lib/dry/monads/extensions/super_diff.rb', line 292

def call
  build_tree do |t2|
    t2.add_text(TOKEN_MAP[object.class])

    t2.nested do |t3|
      t3.add_inspection_of EXTRACT_VALUE.(object)
    end
  end
end