zeisler/active_mocker

View on GitHub
lib/active_mocker/inspectable/struct.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
module ActiveMocker
  module Inspectable
    refine Struct do
      def inspect
        "%s.new(%s)" % [self.class.name, values.map(&:inspectable).join(", ")]
      end
    end
  end
end