What does "class << self" actually do in Ruby?
09-Nov-2021 1453
As a ruby developer, you almost certainly have seen class << self definition inside a class. Methods defined within class << self block become class methods. Here's an example.
What does "class << self" actually do in Ruby? #ruby #rubydeveloper #rubyonrails #"class #self" #actually #Ruby? https://rubyonrails.ba/link/what-does-class-self-actually-do-in-ruby