module SequelMapper::ShortInspectionString

Public Instance Methods

inspect() click to toggle source
# File lib/sequel_mapper/short_inspection_string.rb, line 3
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
inspectable_properties() click to toggle source
# File lib/sequel_mapper/short_inspection_string.rb, line 14
def inspectable_properties
  []
end