Sha256: 3763d2ab047dee565c9c6757de04db5399fb783998cb876f75e73ae13135f7e8
Contents?: true
Size: 524 Bytes
Versions: 7
Compression:
Stored size: 524 Bytes
Contents
module Bankscrap module Utils module Inspectable def inspect attributes = inspect_attributes.reject do |x| begin attribute = send x !attribute || (attribute.respond_to?(:empty?) && attribute.empty?) rescue NoMethodError true end end.map do |attribute| "#{attribute}: #{send(attribute).inspect}" end.join ' ' "#<#{self.class.name}:#{sprintf('0x%x', object_id)} #{attributes}>" end end end end
Version data entries
7 entries across 7 versions & 1 rubygems