3 ms·
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
by Alifatisk 2y ago
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