FinalCAD/csv_row_model

View on GitHub
lib/csv_row_model/concerns/inspect.rb

Summary

Maintainability
A
0 mins
Test Coverage
module CsvRowModel
  module Inspect
    def inspect
      s = self.class::INSPECT_METHODS.map { |method| "#{method}=#{public_send(method).inspect}" }.join(", ")
      address = ('%x' % (object_id << 1)).rjust(14, "0")
      "#<#{self.class.name}:0x#{address} #{s}>"
    end
  end
end