Sha256: 46f8a2331ca17186cf2eca38d06b2a70f25c385d53d1cad7503b30be850021c5

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

module SequelMapper
  module ShortInspectionString
    def inspect
      "\#<#{self.class.name}:#{self.object_id.<<(1).to_s(16)} " +
        inspectable_properties.map { |property|
          [
            property,
            instance_variable_get("@#{property}").inspect
          ].join("=")
        }
        .join(" ") + ">"
    end

    def inspectable_properties
      []
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sequel_mapper-0.0.3 lib/sequel_mapper/short_inspection_string.rb