News for hackers. Stuff that matters.
Re:Better Know a Ruby Thing: Singleton Classes by Alifatisk on Friday January 31, 2025 @05:33PM (#42893100)
I have to admit, years back when I learned Ruby I found this syntax to be very bizzare

  class User
    class << self
      def create_from_data
      end
    end
  end
Specifically, this: class << self

But when reading about it, it made sense

There are no comments on this comment yet.