module Findable::Inspection

Public Instance Methods

inspect() click to toggle source
# File lib/findable/inspection.rb, line 16
def inspect
  _attributes = self.class.column_names.each_with_object([]) {|name, obj|
    obj << "#{name}: #{public_send(name).inspect}"
  }.join(",\s")
  "#<#{self.class} #{_attributes}>"
end