bernerdschaefer/pdf-reader — comment on commit 654eaa86bfa5a01a33dae644bae61b49bae2cb09
File:  line 0
By bernerdschaefer:

I was going insane passing around the object hash around for things like color spaces and things like:

cs = page.objects.deref(:CS0) # => [:Indexed, #, 10, #]
page.objects.deref(cs[1]) # => [:ICCBased, #]
page.objects.deref(cs[3]) # => # #}>

This has simplified a bunch of code related to working with resources (also super-nice for fonts and images).