Module: CsvRowModel::Inspect

Included in:
CsvRowModel::Import::Base
Defined in:
lib/csv_row_model/concerns/inspect.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject


3
4
5
6
7
# File 'lib/csv_row_model/concerns/inspect.rb', line 3

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