Sha256: c7705b870f1bfdf0e26550c43a3ead0b0aab34e31d147510c7c08970db9aa12f

Contents?: true

Size: 295 Bytes

Versions: 11

Compression:

Stored size: 295 Bytes

Contents

module Xot


  module Inspectable

    # Returns a string containing a human-readable representation of object.
    #
    # @return [String] inspected text
    #
    def inspect()
      "#<#{self.class.name}:0x#{(object_id << 1).to_s(16).rjust(16, '0')}>"
    end

  end# Inspectable


end# Xot

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
xot-0.3 lib/xot/inspectable.rb
xot-0.2.1 lib/xot/inspectable.rb
xot-0.2 lib/xot/inspectable.rb
xot-0.1.42 lib/xot/inspectable.rb
xot-0.1.41 lib/xot/inspectable.rb
xot-0.1.40 lib/xot/inspectable.rb
xot-0.1.39 lib/xot/inspectable.rb
xot-0.1.38 lib/xot/inspectable.rb
xot-0.1.37 lib/xot/inspectable.rb
xot-0.1.36 lib/xot/inspectable.rb
xot-0.1.35 lib/xot/inspectable.rb