Ad
  • Custom User Avatar

    Write a class called "Mother" that tracks all inheritances that are done to her (and her kids)

    It seems like your solution wont work for grandchildren:

    class Foo < Mother; end
    class Bar < Mother; end
    class Baz < Bar; end
    Mother.phone_kids # => calls only Foo, Bar.
    
  • Custom User Avatar

    I have a similar result except that I used map instead of each, because the value that will be returned after calling phone_kids is the array of results of each kid call and not an array of kids all the time

  • Custom User Avatar

    holy mother of all that is good and pure...

  • Custom User Avatar

    ahh! finally got it. Thank you!

  • Custom User Avatar

    In this case, the minor words are "an", "often" and "into". The only words you should consider minor are those passed as a parameter. So e.g. "of" is not a minor word by default.

  • Custom User Avatar

    I don't get it

    Test Failed: Gave title="First a of in", minor_words="an often into". Expected "First A Of In" but got "First a of in".

    What? 'an of in' are minor no?

  • Custom User Avatar

    any? is a better pattern than all?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution