t6d / smart_properties

Ruby accessors on steroids
MIT License
177 stars 20 forks source link

Add constant time `PropertyCollection#count` #78

Open amomchilov opened 3 years ago

amomchilov commented 3 years ago

...and #size and #length, to match Hash.

Since I added Forwardable anyway, we can use it to replace the manual definition of #values

amomchilov commented 3 years ago

Hmmm, I think this worked on my machine. I can't figure out how to trigger a rebuild, do you have any idea? @t6d

amomchilov commented 3 months ago

Hey @t6d, just tidying up some old open PRs. Can this be merged?