Sha256: 014569d6c672297d0c3ded34aa06049c086a31db097048fbec03e58211c29f07

Contents?: true

Size: 232 Bytes

Versions: 43

Compression:

Stored size: 232 Bytes

Contents

module PassiveRecord
  module PrettyPrinting
    def inspect
      pretty_vars = to_h.map do |k,v|
        "#{k.to_s.gsub(/^\@/,'')}: #{v.inspect}"
      end.join(', ')

      "#{self.class.name} (#{pretty_vars})"
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
passive_record-0.4.15 lib/passive_record/pretty_printing.rb
passive_record-0.4.14 lib/passive_record/pretty_printing.rb
passive_record-0.4.13 lib/passive_record/pretty_printing.rb
passive_record-0.4.12 lib/passive_record/pretty_printing.rb
passive_record-0.4.11 lib/passive_record/pretty_printing.rb
passive_record-0.4.10 lib/passive_record/pretty_printing.rb
passive_record-0.4.8 lib/passive_record/pretty_printing.rb
passive_record-0.4.7 lib/passive_record/pretty_printing.rb
passive_record-0.4.6 lib/passive_record/pretty_printing.rb
passive_record-0.4.5 lib/passive_record/pretty_printing.rb
passive_record-0.4.4 lib/passive_record/pretty_printing.rb
passive_record-0.4.3 lib/passive_record/pretty_printing.rb
passive_record-0.4.2 lib/passive_record/pretty_printing.rb
passive_record-0.4.1 lib/passive_record/pretty_printing.rb
passive_record-0.4.0 lib/passive_record/pretty_printing.rb
passive_record-0.3.22 lib/passive_record/pretty_printing.rb
passive_record-0.3.21 lib/passive_record/pretty_printing.rb
passive_record-0.3.20 lib/passive_record/pretty_printing.rb
passive_record-0.3.19 lib/passive_record/pretty_printing.rb
passive_record-0.3.18 lib/passive_record/pretty_printing.rb