Sha256: c287c3210665236e0c9cd078a905fe072d6e2c139d997b3e342955406393ea05

Contents?: true

Size: 266 Bytes

Versions: 9

Compression:

Stored size: 266 Bytes

Contents

module Rmega
  module NotInspectable
    def inspect(attributes = {})
      memaddr = (__send__(:object_id) << 1).to_s(16)
      string = "#<#{self.class.name}:#{memaddr}"
      attributes.each { |k, v| string << " #{k}=#{v}" }
      string << ">"
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rmega-0.3.2 lib/rmega/not_inspectable.rb
rmega-0.3.1 lib/rmega/not_inspectable.rb
rmega-0.2.7 lib/rmega/not_inspectable.rb
rmega-0.2.6 lib/rmega/not_inspectable.rb
rmega-0.2.5 lib/rmega/not_inspectable.rb
rmega-0.2.4 lib/rmega/not_inspectable.rb
rmega-0.2.2 lib/rmega/not_inspectable.rb
rmega-0.2.1 lib/rmega/not_inspectable.rb
rmega-0.2.0 lib/rmega/not_inspectable.rb