Sha256: 7aa7fd4a39e2e38887d57b97a2b13c6b7dc0e9458416adc14b3ecc1e23cdaddf

Contents?: true

Size: 191 Bytes

Versions: 9

Compression:

Stored size: 191 Bytes

Contents

module Cistern::Formatter::Default
  def self.call(obj)
    "#<%s:0x%x attributes={%s}>" % [obj.class, obj.object_id.abs*2, obj.attributes.map{|k,v| "#{k}:#{v.inspect}"}.join(",")]
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cistern-0.3.2 lib/cistern/formatter/default.rb
cistern-0.3.1 lib/cistern/formatter/default.rb
cistern-0.3.0 lib/cistern/formatter/default.rb
cistern-0.2.3 lib/cistern/formatter/default.rb
cistern-0.2.2 lib/cistern/formatter/default.rb
cistern-0.2.1 lib/cistern/formatter/default.rb
cistern-0.2.0 lib/cistern/formatter/default.rb
cistern-0.1.4 lib/cistern/formatters/default.rb
cistern-0.1.2 lib/cistern/formatters/default.rb