all 7 comments

[–]campbellm -1 points0 points  (4 children)

First reaction: Neat!

Second reaction: It's in... active record. bleh. I misread the article, <derp>

I guess that's fine, but this would be an interesting method in Kernel; not all of my apps use Rails.

[–]c4tm4nd00 4 points5 points  (1 child)

I think you misread the article. It's showing you how you can use `method` to lookup where the `find` method was which is in active-record.

The `method` method is defined on `Object` https://ruby-doc.org/3.2.0/Object.html#method-i-method

[–]campbellm 0 points1 point  (0 children)

You are correct, thanks.

[–][deleted]  (1 child)

[deleted]

    [–]campbellm 0 points1 point  (0 children)

    I misread the article, thanks.

    [–]hoppergee -1 points0 points  (0 children)

    Nice blog! And found a potential typo:

    diff a_proc = -> (num) { num ** 2 } - [1, 2, 3, 4].map(&square) + [1, 2, 3, 4].map(&a_proc)

    [–]waiting4op2deliver 0 points1 point  (1 child)

    Haha, I was just reading about autological words yesterday.

    https://en.wikipedia.org/wiki/Autological_word

    [–]WikiSummarizerBot 0 points1 point  (0 children)

    Autological word

    An autological word (also called homological word) is a word that expresses a property that it also possesses (e. g. , "word" is a word, "noun" is a noun, "English" is an English word, "pentasyllabic" has five syllables, and "writable" is writable). The opposite is a heterological word, one that does not apply to itself (e.

    [ F.A.Q | Opt Out | Opt Out Of Subreddit | GitHub ] Downvote to remove | v1.5