Sha256: 0e2884ff1d97312b49be4d0004c1f0dcef73cabb0f46c55346ec7d3b2aede6aa

Contents?: true

Size: 268 Bytes

Versions: 17

Compression:

Stored size: 268 Bytes

Contents

module CsvRowModel
  module Concerns
    module Inspect
      def inspect
        s = self.class.send(:inspect_methods).map { |method| "#{method}=#{public_send(method).inspect}" }.join(", ")
        "#<#{self.class.name}:#{object_id} #{s}>"
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
csv_row_model-1.0.0.beta1 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.4.1 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.4.0 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.3.10 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.3.9 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.3.8 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.3.7 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.3.6 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.3.5 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.3.4 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.3.3 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.3.2 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.3.1 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.3.0 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.2.1 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.1.1 lib/csv_row_model/concerns/inspect.rb
csv_row_model-0.1.0 lib/csv_row_model/concerns/inspect.rb