+17
−4
+2
−2
Loading
This way we can either loop or map or reduce over the items as we wish. Plus the method name is more clear in what it does. Also added #all_members - method which does the same but includes all the inherited and mixed in ones.