Skip to content

Instantly share code, notes, and snippets.

@aphyr
Created November 15, 2011 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aphyr/1366237 to your computer and use it in GitHub Desktop.
Save aphyr/1366237 to your computer and use it in GitHub Desktop.
pp e
#<struct Riak::Client::Pool::Element object=[], owner=#<Thread:0x9e30248 run>>
pp @pool
#<Set: {#<struct Riak::Client::Pool::Element
object=[],
owner=#<Thread:0x9e30248 run>>}>
pp e.hash
317069887
pp @pool.first.hash
317069887
pp e.==(@pool.first)
true
pp e.eql? @pool.first
true
pp @pool.first.eql? e
true
pp @pool.first.equal? e
true
pp @pool.include? e
false
@pool.delete e
pp @pool
#<Set: {#<struct Riak::Client::Pool::Element
object=[],
owner=#<Thread:0x9e30248 run>>}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment