Module: Findable::Inspection
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#inspect ⇒ Object
11 12 13 14 15 16 |
# File 'lib/findable/inspection.rb', line 11 def inspect _attributes = self.class.column_names.each_with_object([]) {|name, obj| obj << "#{name}: #{public_send(name).inspect}" }.join(",\s") "#<#{self.class} #{_attributes}>" end |